Added an exit out of the loop if we get a timeout