Close the channel in onDeliveryResult