docs: private void unregister(String path,ZKMBeanInfo bean) throws JMException {
          if(path==null)
              return;
          if (!bean.isHidden()) {
              MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
              try {
                  mbs.unregisterMBean(makeObjectName(path, bean));
              } catch (JMException e) {
                  LOG.warn("Failed to unregister MBean " + bean.getName());
                  throw e;
              }
          }
      }