@Override public void disconnect(){
  try {
synchronized (rawSocketLock) {
      if (serverSocket != null) {
        serverSocket.close();
        serverSocket=null;
      }
    }
  }
 catch (  IOException e) {
    reportError("Failed to close server socket: " + e.getMessage());
  }
  super.disconnect();
}

@ Override public void disconnect ( ) { try { synchronized ( rawSocketLock ) { if ( serverSocket != null ) { serverSocket . close ( ) ; serverSocket = null ; } } } catch ( IOException e ) { reportError ( "Failed to close server socket: " + e . getMessage ( ) ) ; } super . disconnect ( ) ; }
closes the listening socket and calls super .
