Check for EOF error and re-establish connection to APNS if that happens