Optimized CApplication::CheckShutdown() not to do further checks for tim...

...er reset conditions once resetTimer is true.