handle faraday errors