code: public void shutdown() {
  	accept = false;
  	try {
  	    _server.close();
  	} catch(Exception e) {}
  	// this is a hack to ensue the server socket is
  	// unblocked from accpet()
  	// but this is not guaranteed to work still
          SocketFactory factory = SocketFactory.getDefault();
  	Socket s = null;
  	try {
  	    s = factory.createSocket(InetAddress.getLocalHost(), getPort());
  	    s.getInputStream();
  	} catch (Exception e) {
  	    // can be ignored
  	} finally {
  	    if (s != null) {
  		try { s.close(); } catch (Exception e) {}
  	    }
  	}
  
  	// reset everything
          serverThread = null;
          _server = null;
      }
docs: Stops the server but does
  not stop all the client threads