I think that is a general problem for some people.
If I should guess it is the TCP connection that is closed by whatever means.
What you could do is dumping all your TQ connection data and wait for a connection close to happen. Then look at how the connection was closed.
sudo tcpdump -i eth0 -s 0 -n -w dumpfile.bin tcp port 26000
should capture the connection (don't know if that is against the EULA but the data is encrypted anyway)
then you can open it in wireshark and lok how the connection was closed (the last 10 packets should show that)
an alternative could be to use a different port to connect to TQ (I think there was a blog about that some time ago) something to read