(OSX) Replace apple_rarch_exited call with main_exit