fix event subscriber
fix unload wpf application