ensure CURL Request class handles connection errors properly