code: public static synchronized void shutDown() {
  		if (measurementSession.getEndTimestamp() != null) {
  			// shutDown has already been called
  			return;
  		}
  		logger.info("Shutting down stagemonitor");
  		measurementSession.setEndTimestamp(System.currentTimeMillis());
  		for (Runnable onShutdownAction : onShutdownActions) {
  			try {
  				onShutdownAction.run();
  			} catch (RuntimeException e) {
  				logger.warn(e.getMessage(), e);
  			}
  		}
  		for (StagemonitorPlugin plugin : plugins) {
  			try {
  				plugin.onShutDown();
  			} catch (Exception e) {
  				logger.warn(e.getMessage(), e);
  			}
  		}
  		configuration.close();
  	}
docs: Should be called when the server is shutting down.
  Calls the {@link StagemonitorPlugin#onShutDown()} method of all plugins