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

Fixes issue where "Left" event is sent empty to clients.