should the debugger check and recheck be here instead of in the ApplicationShutdown class itself?