tomcat added to stop function