Check the error before closing the res.Body
Merge pull request #12 from palourde/panic_error

Check the error before closing the res.Body