fix bug when the completion handler was not called in case of sync failure of event
make sure dispatch_group_leave is not called too early to leave some data incostistent in syncNotSynchedEventsIfAny; check also for done handler presence