private void MainWindow_OnClosing(object sender, CancelEventArgs e) { VideoPlayer.Pause(); _launch?.Close(); _connector?.Disconnect(); }