Added steps to slow down the stopping and starting of tomcat in order to not get into this weird shutdown stall