fix deploy after stop

review by @rmg, destined for @seanbrookes