Close resp.Body inside http_output

This fixes #1158 by explicitly closing the connection after shipping the HTTP output.
This probably actually needs to go right after the reader is created, because if an error occurs, the reader wont be closed.