fix reading the comment provided in our icap response
fix handling of broken http requests
break from infinite loop when the control channel is closed
cleanup code