I've tried a try/catch block, but that didn't help.
I've tried everything I can think of to try to fix this, including subclassing the application window procedure- where I monitored all the messages. I did discover the the CControlView::Draw method was never called after the app was terminated.
So to say I'm puzzled would be an understatement.
The identical code running on CS3 and CS4 doesn't cause a problem in Win7.