sleep the computer if lid was already shut and we're allowed to go to sleep