Fixed serialization warnings for TcpClient