Fix failCount not updating after job finishes