Check for timeouts in heuristic search