Fix for wakeup that intermittently causes exit issues.