Don’t crash at exit on iOS