Catch more kinds of curl errors