Setting secureMode to true prevents an app from handling 'Quit' and 'Preferences' items from the system menu on Mac.