Reset curl connections between uses

Suggested by ygrek.