public void shutdown() throws ConnectionManagerException {
  s_logger.info("Shutting down CIM adapter.");
  connectionLock.lock();
  try {
    closeAllConnections();
    if (_listener != null) {
      _listener.stop();
      _listener=null;
    }
    executorService.shutdown();
  }
 catch (  Exception e) {
    throw new ConnectionManagerException("An error occurred shutting down the connection manager",e);
  }
 finally {
    connectionLock.unlock();
  }
}

public void shutdown ( ) throws ConnectionManagerException { s_logger . info ( "Shutting down CIM adapter." ) ; connectionLock . lock ( ) ; try { closeAllConnections ( ) ; if ( _listener != null ) { _listener . stop ( ) ; _listener = null ; } executorService . shutdown ( ) ; } catch ( Exception e ) { throw new ConnectionManagerException ( "An error occurred shutting down the connection manager" , e ) ; } finally { connectionLock . unlock ( ) ; } }
shutdown the application . stops the listener ( which releases its tcp port ) .
