Changed ApplicationExitRequested to AboutToExitForInstallerRun and made it cancellable