fix(agent): Clear UnitState before unscheduling on shutdown
fix(agent): Clear UnitState before unscheduling on shutdown

On graceful shutdown, an Agent must clear each individual Job's UnitState
before unscheduling it. If an Agent takes these two actions in the
opposite order, it runs the risk of deleting legitimate state from the
Registry that was published by a different Agent.

improbable-io/fleet,wuqixuan/fleet,mwhooker/fleet,bviswana101/fleet,mwitkow-io/fleet,hhoover/fleet,endocode/fleet,mischief/fleet,hhoover/fleet,coreos/fleet,dongsupark/fleet,jonboulle/fleet,improbable-io/fleet,bcwaldon/fleet,coreos/fleet,bcwaldon/fleet,dalbani/fleet,WPMedia/fleet,dalbani/fleet,wuqixuan/fleet,mwhooker/fleet,esatterwhite/fleet,paveltiunov/fleet,bcwaldon/fleet,giantswarm/fleet,giantswarm/fleet,flandr/fleet,ecnahc515/fleet,dalbani/fleet,octoblu/fleet,endocode/fleet,thepwagner/fleet,endocode/fleet,esatterwhite/fleet,mischief/fleet,giantswarm/fleet,paveltiunov/fleet,bviswana101/fleet,mwitkow-io/fleet,coreos/fleet,mookjp/fleet,mwitkow/fleet,flandr/fleet,WPMedia/fleet,jonboulle/fleet,dongsupark/fleet,thepwagner/fleet,ecnahc515/fleet,improbable-io/fleet,webwlsong/fleet,ecnahc515/fleet,octoblu/fleet,dongsupark/fleet,mookjp/fleet,jonboulle/fleet,webwlsong/fleet,mwitkow/fleet