Makes sure that the global events completed and failed are registered before waiting a job o be finished