Detect stale running deployments and kill them

I hadn't initially thought about doing this with PIDs, but took my best stab given the card description. I tested the functions on my Mac, but will QA with real slugs before merging to Master.