code: @Override
      public void contextDestroyed(ServletContextEvent event) {
          try {
              _gate.await();
              _logger.info("Stopping Argus web services.");
              _system.getServiceFactory().getMonitorService().stopRecordingCounters();
              _system.getServiceFactory().getSchedulingService().stopAlertScheduling();
              _system.getServiceFactory().getWardenService().disableWarden();
              _system.stop();
          } catch (InterruptedException ex) {
              _logger.info("Interrupted while waiting for startup to complete.");
          }
      }
docs: ~ Methods **************************************************************************************************************************************