FORUM-822 | Stop multi threads when stoping tomcat server.