Stop TcpConnection on handler termination (closes #261)

See #261