AutomationElement blocks when application show messagebox I have an event in my WPF application that looks like this: