Ensure agents are shutdown during failed parallel processing runs; avoids lockups