Is there a way that I can have the computer automatically log out and then go to sleep when I close the cover of my MacBook? In that way I would be required to log in when resuming work (and if the computer was stolen, then some security against unauthorized access).