Handle spurious wakeups