(iOS) Prevent crash when selecting 'Quit RetroArch' in menu