blackberry/Samples-for-AIR — pull request #21 by mdandrea (2013-05-22 12:34:30+00:00)
Title: Fixed an issue where the app would sometimes not exit after processing a push.

It was a matter of switching to use the IowWindowEvent.WINDOW_STATE_CHANGED event instead.