Updated the sleep time from 5 to 10 seconds because after new relic agent was installed on tomcat it's not enough sometimes to start.