fix(agent): Stop jobs when purging Agent

Fix #292