When opening a file, check whether it is bad.  Presently the new function is_file_bad()
does a few checks on the axes.  More checks can be added as needed.