/// <summary> /// Perform an orderly shutdown of the MFD Extractor. /// </summary> private void Quit() { //Stop the Extractor engine Extractor.GetInstance().Stop(); Extractor.DisposeInstance(); //remove the applicaton's tray icon from the tray nfyTrayIcon.Visible = false; //Close the application's main form if (!_isClosing) { Close(); } }