Close a TCP connection