Reverts a change to use id instead of pid for destroying artifacts.