cleanup, use Socket instead of TcpClient
it is called 'control' connection, not command connection
correctly recognize when the control connection is closed