Simplify the shutdown logic. Also fix a bug that caused the debug screensaver to have assert failure (the size of the wxTempDC needed to be set)
Authored by: david_costanzo 2016-11-13
Parent: [r4247]
Child: [r4249]