finalizer
noun
°(computing) In some programming languages, a function that runs when an object is garbage collected, similar to a destructor.