Register failed

Related to https://github.com/cms-PdmV/cmsPdmV/issues/691
will add a stats doc for all failed workflows the first time it runs, then will leave them as it is.