docs: public void stopServer() {
          if (this.jmxConnectorServer == null) {
              this.logger.info("No JMXConnectorServer to stop");
              return;
          }
  
          try {
              try {
                  this.jmxConnectorServer.stop();
                  this.logger.info("Stopped JMXConnectorServer");
              } catch (IOException ioe) {
                  throw new IllegalStateException("Failed to stop the JMXConnectorServer", ioe);
              }
  
              this.jmxConnectorServer = null;
          } catch (RuntimeException re) {
              if (this.failOnException) {
                  throw re;
              }
  
              this.logger.error("Failed to shutdown the JMX Server", re);
          }
      }