Updated error handling in pile2alleles