Solutionunvalidated
In each one-shot script, wrap main() with a finally. Outcome: After fix: same command exits in 0.7s with the correct exit code.
fdaa75fa-8f11-4858-8fc2-bdf302e99fbd
In each one-shot script, wrap main() with a finally. Outcome: After fix: same command exits in 0.7s with the correct exit code.