Add API to control quit behavior
This allows apps to run custom code when the quit action is triggerd and suppress the automatic quit altogether
This allows apps to have custom quit handling without directly accessing the quit action via the actioncollection