Fix accumulation of open connections

The http response should be read and the response handle should
be closed to facilitize connection reuse.