Fix broken ApplicationExit trigger running batch file