catch ssl exceptions in transmit_messages for apns