Optimized CApplication::CheckShutdown(). Small fix.