add poor wait to make tomcat stop gracefully

totally weak but does the job. a better way to do this would be to check
open ports and/or curl tomcat url