Terminate program if waitForPresence doesn't return in 10 seconds.