Added push manager state checking since the interaction between the event loop group and the getExpiredTokens method has changed a bit. This should also cover what we were trying to do in #3.