'Handler to call when closing'

@close_handler.setter
def close_handler(self, callback):

    if ((self.close_handler is not None) or (callback is not None)):
        log.debug('Resetting    close_handler    on    %s?', self)
    if (callback is None):
        callback = _dummy_handler
    self._custom_close_handler = callback
