finalizer

Alternative forms

 * finaliser

Noun

 * 1)  A function that runs when an object is garbage collected, similar to a destructor.