Perform APNs error handling asynchronously. Fixes #7.