Added logic to loop through service checking and timeout if service did not stop in certain amount of time.