Workarund for crash on exit with new libcurl 7.29.0