Added explicit unsub/sub on sleep/wake.