exit if wget of tomcat logs doesn't work