Add some EnsureUIThreads in order to fail as early as possible.