Set state in Connection correctly.
Implement proper TCP connection termination and emit Connectt and Disconenct callbacks in TcpConnection. Also update TcpConnection est.