code: public void closeAll() {
  		for (Object connection : pool.values()) {
  			JMXMonConnection jmxcon = (JMXMonConnection)connection;
              if (jmxcon.connector != null) {
                  try {
                  	jmxcon.connector.close();
                      log.debug("jmx connector is closed");
                  } catch (Exception ex) {
                      log.debug("Can't close jmx connector, but continue");
                  }
              } else {
                  log.debug("jmxConnector == null, don't try to close connection");
              }
              
              jmxcon.connector = null;
              jmxcon = null;
              
          }
  		/* erase pool informations for this run but will be recreate for the next run */
  		pool.clear();
  	}
docs: Close all active connections by closing linked {@link JMXConnector}