code: public void shutdown() {
          debugConnection = null;
          shuttingDown = true;
          try {
              if (serverSocket != null) {
                  serverSocket.close();
              }
          } catch (IOException e) {
              e.printStackTrace();
          }
      }
docs: Shuts down the server. Active connections are not affected.