Move sglExit to retro_run