fix amo_curl_post_mass and throw exceptions