Tcp client request cleanup