ApplicationService will register JVM shutdown hook