abort on curl error