public synchronized void stop(){
  if (_isRunning) {
    s_logger.info("Stopping listener at {}",_url);
    _listener.removeListener(_url.getPort());
    s_logger.info("Stopped listener at {}",_url);
    _isRunning=false;
    _listener=null;
  }
}

public synchronized void stop ( ) { if ( _isRunning ) { s_logger . info ( "Stopping listener at {}" , _url ) ; _listener . removeListener ( _url . getPort ( ) ) ; s_logger . info ( "Stopped listener at {}" , _url ) ; _isRunning = false ; _listener = null ; } }
stops listening and releases the tcp port .
