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.