{"version":"2.1.242","anchor":"one-callback-can-now-run-just-before-interactive-shutdown","canonical_anchor":"one-callback-can-now-run-just-before-interactive-shutdown","heading":"One callback can now run just before interactive shutdown","tier":"internal","area":"Process Lifecycle","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.242\/e\/one-callback-can-now-run-just-before-interactive-shutdown","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.242","markdown":"### One callback can now run just before interactive shutdown\n\nOne callback can now run just before an interactive session exits, with errors swallowed quietly.\n\n**What**\n\nThe process lifecycle gained a slot for a single shutdown callback that can be set or cleared, runs once before an interactive session exits, is skipped if shutdown is already under way, and has its errors sent to the error reporter rather than surfaced.\n\n**Evidence**\n\n`runBeforeInteractiveShutdown`\n\n- Area: Process Lifecycle\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5"}