code: public void stop() {
  		if (serverThread != null) {
  			try {
  				//close and force IOException in server process
  				server.close();
  				//server thread will end as well
  			} catch (IOException ioe) {
  				System.out.println(new LogEntry(Level.CRITICAL, ioe.getMessage(), ioe));
  			}
  		}
  
  		//close client connections as well
  		for (Connection client : new HashSet<Connection>(connectedClients)) {
  			if (!client.isClosed()) {
  				client.close("server shut down...");
  			}
  		}
  	}
docs: Stops this component. Closes the server socket, which stops the incoming connection exceptionHandler as well.