@Override
    public void stop() {
        LOGGER.info("Stopping Stroom");
        if (enabled.get()) {
            shuttingDown.set(true);
            doStop();
        }
        LOGGER.info("Stopped Stroom");
    }
Called when the application context is destroyed.
stroom-lifecycle/stroom-lifecycle-impl/src/main/java/stroom/lifecycle/impl/LifecycleService.java