public static boolean close(final ServerSocket serverSocket) {
    if (serverSocket != null) {
      try {
        serverSocket.close();
      } catch (IOException ignore) {
        return false;
      }
    }

    return true;
  }
Closes the specified ServerSocket silently ignoring any IOException, guarding against null
Object references.
<p>

@param serverSocket the ServerSocket to close.
@return boolean value indicating whether the ServerSocket was successfully closed. If the
        ServerSocket Object reference is null, then this method will return true.
@see java.net.ServerSocket#close()
geode-core/src/main/java/org/apache/geode/internal/net/SocketUtils.java