Maybe and I repeat MAYBE hibernating your computer could be another option, since it should store all your ram data into your disk and then shutdown, after restart all the data is transferred again to the ram so he shouldn't die(?). By the way, if you want to feel safer about it then use sleep mode.