Fixes 1102925: Unassign hosts before deployment delete

OK thanks for checking this out.  Granted we have no tests, this one slipped in possibly after a refactor.  I only ever merge after receiving an ACK.  You said #157 is based on top of this.  So I'll wait for that to get merged and send a clean up patch.  Cheers