code: protected void closeMBeanServerConnection(String childName) {
      MBeanConnectionInfo connInfo = connections.get(childName);
      if (connInfo != null && connInfo.connector != null) {
        try {
          connInfo.connector.close();
        } catch (IOException e) {
          logger.log(Level.FINE, "Failed to close JMXConnector", e);
        }
        connInfo.connector = null;
      }
    }
docs: Close the MBean server connection.