code: @Override
    public void stop(ShutdownModeAmp mode)
      throws Exception
    {
      super.stop(mode);
      
      Alarm alarm = _alarm;
      _alarm = null;
  
      if (alarm != null) {
        alarm.dequeue();
      }
  
      for (PortTcp port : _ports) {
        try {
          port.close();
        } catch (Throwable e) {
          log.log(Level.WARNING, e.toString(), e);
        }
      }
      
      _clusterService.stop();
    }
docs: Closes the server.