There should be some user-friendly debug output on error around this and #post_managed_result, particularly because we're going over network which is often prone to failure in so many ways. curl_form_data will return $? from its curl call, so capturing this in #begin_managed_build and #post_managed_result should be easy.