Refactor stopping to be safe against version upgrades and multiple deployers on the same host. Also remove awk dependency from runtime