Adding WPF SingleInstance utility code