cleanup properly between iterations
Merge branch 'sam/async' of github.com:karelia/CurlHandle into sam/async