Wpf Window Closing Event Not Firing