OF-464: Check connection status before sending

Ensure that async packets are not lost when a connection is
dropped/reset by peer.