If your Windows computer crashes or freezes when it "wakes up" from sleep mode or hibernation, disabling power-saving mode should help solve the problem (but if you use laptop you need to plug in the AC Adapter more often).
To disable power-saving mode:
Start -> Control Panel -> (Hardware and Sound) -> Power options -> Change plan settings (on the right side of the selected power plan - Balanced or High Performance) -> Change Advanced settings -> Expand the hard disk power options, by clicking on the "+" next to Hard Disk.
Change the time listed under Turn Off Hard Disk After to Never. Do the same for the Sleep, Hibernate After options.