'Schedule removing of a destroyed QObject.
We don\'t remove the destroyed object immediately because it might still
be destroying its children, which might still use the object
registry.'

def on_destroyed(self, name):

    log.destroy.debug('schedule    removal:    {}'.format(name))
    QTimer.singleShot(0, functools.partial(self._on_destroyed, name))
