public void Stop(bool reportError = true) { try { recorder.StopStreams(); recorder.DisableAudioInput(); recorder.DisableVideoInput(); } catch (Exception ex) { if (reportError) { MessageBox.Show($"Cannot stop fingerprinting: {ex.Message}", "Error", MessageBoxButton.OK); } } }