[[ Bug 13140 ]] Handle the appleEvent for quitting to ensure we quit when in background.
Merge branch 'bugfix-13140' into develop