public void stop() {
        try {
            safeClose(myServerSocket);
            closeAllConnections();
            myThread.join();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
public void stop ( ) { try { safeClose ( myServerSocket ) ; closeAllConnections ( ) ; myThread . join ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } }
Stop the server.