Avoid crashing when an input file could not be opened