Detecting destruction of Grid object


i have a following question on using wxPython:

I have a grid object, which is being used in different dialogs.
Grid object is derived from wx.grid.GridTableBase.

This grid objects on creation adds listeners, so, it can react to changes in the underlying data structure.

My question is the following:
is there some handler, which is being called, when window corresponding to grid is being destroyed, so, then I would be able to remove listeners, which are listening to changes in the underlying data structure? Otherwise, my program get events, which should be handled, although actual grid does not exist anymore

Many thanks in advance

Serhiy Yevtushenko