Now CTCPSocket disconnects every time a transimission failure occurs.

Thanks to Bernard Mayeur for finding the problem and providing a patch.