code: public void stop() throws Throwable
     {
        if (server != null && server.isRunning())
        {
           server.stop();
           handlers = new HandlerList();
  
           log.info("Jetty " + Server.getVersion() + " stopped");
        }
     }
docs: Stop
  @exception Throwable If an error occurs