Once your automation routines are completed, you can use the ExcelUninstall function to close Excel.
By default, ExcelUninstall only closes visible instances of Excel if no workbooks remain open. This avoids accidental data loss. You can force a visible instance of Excel to close, even if workbooks are open, by specifying Visible -> True as an option to ExcelUninstall.