Use defer to close the response body rather than to do it by hand.