Release message only after it has been sent to all connections.
Merge pull request #8 from fancycode/refcount_buffers

Release message only after it has been sent to all connections.