break out of the while loop after 15 minutes

this should fix a problem where a test would hang until the end of times