code: @Override
    public void stop(ShutdownModeAmp mode)
    {
      _lifecycle.toDestroy();
      
      _activeService.set(null);
      
      FailSafeHaltThread failSafeThread = _failSafeHaltThread;
      
      if (failSafeThread != null) {
        failSafeThread.wake();
      }
      
      FailSafeMemoryFreeThread memoryFreeThread = _failSafeMemoryFreeThread;
      
      if (memoryFreeThread != null)
        memoryFreeThread.startShutdown();
      
      ShutdownThread shutdownThread = _shutdownThread;
      
      if (shutdownThread != null)
        shutdownThread.wake();
    }
docs: Starts the server.