When you start an application programmatically it takes up memory in the computer. You should quit the application when you have finished using it so system resources can be freed up.
Although each Object Model is different, most have a Quit method from the Application object that can be used to close the application cleanly. For example, using the variable declarations from the previous section, the following line of code will quit Excel:
ExcelAppObj.Application.Quit