public void shutdown(){
  shutdownServerThread();
  shutdownSessions();
}

public void shutdown ( ) { shutdownServerThread ( ) ; shutdownSessions ( ) ; }
closes the server socket and all client sockets .
