Sleep is, in my opinion, not reliable. All it does is shut down the more power hungry components. When it wakes it will, I guarantee, forget some things. As you've found out. Don't use sleep. Hibernate takes a snapshot of the PC and restores them when coming out of hibernation.