Merge pull request #135 from jonboulle/master

fix(*): only close if resp != nil