I don't think you want to add just the numExecutorsFailed as that could be way more then what you need.  You want to take the difference between what you want and what is missing and not pending. Similar to how launchReporterThread does it.