APNSTask maintains socket connection between tasks.