Close response body to prevent leaks.

Make sure to close the HTTP response body. Fix a small issue when
building on a fresh checkout if the 'bin' directory doesn't exist.