Close HTTP response bodies

Fixes #285. The whole registry client needs a refactor, but here's a quick fix for more leaking fds.