Error handling for file loads