work out situations when computer goes to sleep