Fix race condition in ExecutionGraph which made the job finish before all vertices have called the finalizeOnMaster method.