Fix exception when trying to use ProtoSend if the connection is closed