code: private void closeServerSocket() {
         getLogger().debug("{} closing server socket", getName());
  
         try {
           if (serverSocket != null) {
             serverSocket.close();
           }
         } catch (Exception e) {
           // ignore for now
         }
  
         serverSocket = null;
       }
docs: Closes the server socket, if created.