implemented accurate cleanup of springloaded threads on tomcat server shutdown