performLastGasp();
ContextService csf = ContextService.getFactory();
if (csf != null)
{
System.out.println("ran out of time");
csf.notifyAllActiveThreads
((Context) null);
}
try {
Thread.currentThread().sleep(30*1000); //Give threads 30 sec to shut down.