Here's another pair of screencasts to simplify your Windows 7 development. Both cover Restart and Recovery - one is for native developers and the other for managed. As the screencast intros say:
Application
Recovery and Restart (ARR) technologies enable developers to customize an
application's behavior when Windows Error
Reporting(WER) terminates the application due to an unrecoverable error.
For example, it enables an application to perform data recovery and cleanup
operations such as capturing application state and releasing resources before
termination. It also allows developers to specify that WER should automatically
restart an application that it has terminated.
I hope they help you do the right thing when your application blows up or the machine reboots.
Kate