private synchronized void close(){
  if (s != null) {
    try {
      s.close();
    }
 catch (    IOException ex) {
      LOGGER.warning("[PubSub] Error disconnecting " + ex);
    }
  }
}

private synchronized void close ( ) { if ( s != null ) { try { s . close ( ) ; } catch ( IOException ex ) { LOGGER . warning ( "[PubSub] Error disconnecting " + ex ) ; } } }
close connection . if requesteddisconnect is false , it will automatically reconnect .
