fix(engine): Clear UnitState before Job target

The rest of the cluster reacts to clearing the Job target, so we must
clear the UnitState first to prevent race conditions.
Merge pull request #461 from bcwaldon/machine-removed-ordering

fix(engine): Clear UnitState before Job target