Fixed "hanged" tomcat after shutdown