app events are removed when ios glview is destroyed.
Merge pull request #2165 from julapy/ios-exit-fix

ios on-exit fix