public void emergencyClose(){
  if (stopped) {
    return;
  }
  stopped=true;
  try {
    if (channel != null) {
      channel.close();
    }
 else {
      if (socket != null) {
        socket.close();
      }
    }
  }
 catch (  IOException e) {
  }
  ConnectionTable.emergencyClose();
  socket=null;
  thread=null;
  conTable=null;
}

public void emergencyClose ( ) { if ( stopped ) { return ; } stopped = true ; try { if ( channel != null ) { channel . close ( ) ; } else { if ( socket != null ) { socket . close ( ) ; } } } catch ( IOException e ) { } ConnectionTable . emergencyClose ( ) ; socket = null ; thread = null ; conTable = null ; }
close the serversocketchannel , serversocket , and the connectiontable .
