bugfix for errors thrown during distributed processing causing file counters to get out of sync