preventing that a single corrupt file breaks the complete binning process