macOS: MacBook goes hibernate during night and does not restore all windows after turning on
Ok, I see here: https://support.apple.com/en-us/HT201635


  OS X Mountain Lion v10.8.2 supplemental update 2.0 introduced a feature that lets your Mac enter safe sleep after four hours of being connected to AC power. This complies with European Energy Standards (ErP Lot6) and happens when there's no network activity and no activity from connected devices like external hard drives. 


that my Mac could have hibernated after four hours of inactivity. But would not that restore all of my work.