Handle unstructured errors