Bugfix and slight change in the logic

Files are normally set as "Processed" unless failures are previously
detected