Catch any exception raised by load_file