void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { CaptureService.StopCapture(); }