Close the response body so it doesn't leak file descriptors
Modified defer position as it could cause a panic if invoked after a connection error happened
Merge pull request #3 from ludei/master

Close the response body so it doesn't leak file descriptors