public static void emergencyClose(){
  ConnectionTable ct=(ConnectionTable)lastInstance.get();
  if (ct == null) {
    return;
  }
  lastInstance.set(null);
}

public static void emergencyClose ( ) { ConnectionTable ct = ( ConnectionTable ) lastInstance . get ( ) ; if ( ct == null ) { return ; } lastInstance . set ( null ) ; }
clears lastinstance . does not yet close underlying sockets , but probably not strictly necessary .
