Notification function called just before an element is deleted from memory.
The default implementation of this function does nothing. This function can be overridden in custom classes.