Interesting question.
Some folks told me once that power failed gradualy (a few until seconds until incandescent
bulbs went out completely) and they saw the Windows shutdown screen, so probably the OS tried
to go down in an emercency.
I never knew if to believe them or not.