See Replacing an Existing Exit.
You can apply PTFs to scratch or rename with SMP/E without modifying your own versions of the two exit routines.