Issues closing the curl client, closes #146