Only create new codes stages if the feature does not already exist within the Blue Prism product or utility objects. Bespoke, difficult to support, code is something you should be trying to limit the use of.
There is a Kill Process action within one of the certified utility objects (in the environment one I think).