Preparing a sleep-timout.