docs: public static void unregisterMbean(ObjectName name) {
          try {
              ManagementFactory.getPlatformMBeanServer().unregisterMBean(name);
          } catch(Exception e) {
              logger.error("Error unregistering mbean", e);
          }
      }