test(functional): test single-node shutdown
fix(agent): Stop jobs when purging Agent

Fix #292
Merge pull request #293 from bcwaldon/node-shutdown-testing

Fix #292 & further testing of node shutdown