fix(purge): Simplify graceful agent shutdown
Merge pull request #332 from bcwaldon/fix-agent-shutdown

fix(purge): Simplify graceful agent shutdown