Setting input file flag to false on failures