docs: @Override
    public void unregister(Monitor<?> monitor) {
      try {
        List<MonitorMBean> beans = MonitorMBean.createMBeans(name, monitor, mapper);
        for (MonitorMBean bean : beans) {
          try {
            mBeanServer.unregisterMBean(bean.getObjectName());
            locks.remove(bean.getObjectName());
          } catch (InstanceNotFoundException ignored) {
            // ignore errors attempting to unregister a non-registered monitor
            // a common error is to unregister twice
          }
        }
        monitors.remove(monitor.getConfig());
        updatePending.set(true);
      } catch (Exception e) {
        LOG.warn("Unable to un-register Monitor:" + monitor.getConfig(), e);
      }
    }