Fixed an issue where the app would sometimes not exit after processing a push.