added ability to kill the connection
working client