Move the quit dialog to static tick