Improvements to MTBF tracking with a shutdown registry cookie

@ikeough PTAL

This is the first of a series stability measurement improvements. This one uses a registry key to record clean shutdown and will give a more precise series of easy to extract factored MTBFs.

Please review, but I'd like to do a little more testing on top of Revit before merging.

I'd like this to land in 072.

Thanks!