Error handling with resource loading