Catch for loading a file that causes an error