Don't let the runtime shut down before at-exit tasks finish [IMMUTANT-383]