Halt! - implementing stopping the connection

I added your comment to the code.