Stop TcpConnection on handler termination (closes #261)