Correct way to timeout