Fixed possibility that packet_send_rate would get stuck.
Exposed and tested disconnect notification TCP packets.