The automatic reboots are my biggest pet peeve of Windows 10. Microsoft may find this hard to believe, but not every application saves its state when Windows requests a reboot!
The upcoming “Creators” release may fix this, but in the meantime I tried this fix. Fingers crossed it will do the trick.