Improving cancelling processes

Maybe this should be configurable with an ENV or something?