Exit/close Igor from a function?

Is there a way to close Igor using command in a function? I haven't found this in the manual or Igor Exchange.

More context: I am analyzing data each night on a remote computer. I am using Windows Task Scheduler to open Igor and then IgorStartOrNewHook to call the data processing/data saving functions. Those steps work fine. Finally, I want to close the Igor Experiment, but I haven't found a way to do that. My backup plan is to use Windows Task Scheduler to kill Igor after a fixed time period, but that seems extreme.

Thanks,
Rebecca