svoid exitIfMain() { if (isMain()) { if (!headless()) sleepSeconds(3); cleanKill(); } }