You can all Ctrl +. directly from the code:
CmdPeriod.run
This is more complete than s.freeAll, as it also stops threads on the language side, including the one that contains this command. To learn how to avoid CmdPeriod threads, check out the help files for CmdPeriod and for SkipJack
source share