private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { new Action(() => { this.handDataSource.Stop(); this.factory.DisposeAll(); }).BeginInvoke(null, null); }