for (final FastqWriters writerMapping : new HashSet<FastqWriters>(writers.values())) {
writerMapping.closeAll();
}
if (firstSeenMates.size() > 0) {
SAMUtils.processValidationError(new SAMValidationError(SAMValidationError.Type.MATE_NOT_FOUND,
"Found " + firstSeenMates.size() + " unpaired mates", null), VALIDATION_STRINGENCY);
}
return 0;
}