Handle ERROR_SHUTDOWN_IN_PROGRESS for trigger events automatically