properly exit if tomcat fails to start