void (@NotNull ActionCallback callback, @NotNull PlaybackContext context) { writeExitMetricsIfNeeded(); String[] arguments = getText().split(" ", 2); ApplicationManager.getApplication().executeOnPooledThread(() -> { try { TimeUnit.SECONDS.sleep(Long.parseLong(arguments[1])); ApplicationManager.getApplication().exit(true, true, false); callback.setDone(); } catch (InterruptedException e) { callback.reject(e.getMessage()); } }); }