Fix a typo in APNS bulk notifications
Close the socket when sending messages in bulk