updated tomcat shutdown hook