WPFでApp.xaml.csのOnStartUp、OnExitが呼ばれない。