Fix 10.7 crash when closing OpenEmu.