svoid doneMsgAndExitIfMain() { S msg = "Done!"; infoBox(msg); if (isMain()) { consoleStatus(msg); if (!headless()) sleepSeconds(3); cleanKill(); } }