A WPF global exception capture method