public static synchronized void stop() throws Exception { if (server != null) { server.stop(); server = null; } }