Try to prevent crash on wakeup