Added wakeup on shutdown