added more error checking in the tcp queue

Ignore-this: 1002491ab358df7436bdb6240234f066

darcs-hash:20131221041658-c21fe-474711d0cc0065e65cb188d93eca716bc250b3e9
updated some logging messages

Ignore-this: eb9d7ec554e6e49f0f22ecf725ca93c2

darcs-hash:20131221041730-c21fe-d364b440805f8900d0f7fc3aecd4d2c9b9b05fb9