cleanup resume and awake routines