0c486cedde
shouldRunExecutorCleanup gates Sprites teardown on a small set of terminal reasons (task/session archived/deleted). DestroySandbox was calling StopInstance with an empty StopReason, which never matched that set — so the sandbox was never actually destroyed, only the local execution state was cleaned up. The sprite kept running upstream until it idled out. Pass StopReasonTaskDeleted explicitly. While here, lift the four terminal-reason literals into named constants so callers don't have to keep them in sync with shouldRunExecutorCleanup's switch.