Make tcp close connection when client closes it