Close HTTP response bodies

Fixes #285.