Cleanup of TcpTextClient