fixed the risk of SimpleTcpClient connection leaking