Added missing curl_close() calls.
merged branch staabm/patch-1 (PR #13)

This PR was merged into the master branch.

Commits
-------

ad7e6a4 Added missing curl_close() calls.

Discussion
----------

Added missing curl_close() calls.
fixed CS