Close the APNS connection if there was an error