code: public void beforeShutdown(@Observes final BeforeShutdown bs) {
          monitor.unregisterHealthReporter();
          monitor.unregisterContextClassLoader();
          reporter = null;
          reporterInstance.preDestroy().dispose();
          reporterInstance = null;
      }
docs: Called when the deployment is undeployed.
  
  Remove the reporter instance of {@link SmallRyeHealthReporter} from the {@link Monitor}.
  Handle manually their CDI destroy lifecycle.