When a connection is closed immediately after sending a message the message gets dropped. Instead we should flush all remaining packets (to send) and stop accepting new packets.
How do I get access to the Fix Version 3.0.0 for this fix ?
Changed logic in PacketWriter to flush the queue when shutting down the writing thread.