Issue #21: Added shutdown hook for ensure that Tomcat's context lifecycle is stopped.