[calc] Macros: What command to add to exit a macro?

I have a macro that when run from the command line does not exit Calc.
How do I run the macro from the CLI and exit?

Thanks.
Dave

Would the following work?

dispatcher.executeDispatch(document, “.uno:Save”, “”, 0, Array())