Correct closing logic on resp.Body