Excel.Application app = new Excel.ApplicationClass(); app.Quit();
app.DisplayAlerts = false; app.Quit(); System.Runtime.InteropServices.Marshal.ReleaseComObject(app); app = null; GC.Collect();