>That would be a good approach. However, I was under the impression that one of the causes would be users turning off their computers while in the APP. How would I prevent that?
Educate the users. It is never a good idea to turn off the computer - the ShutDown command should be used instead.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)