'Unpublish the service.
Call when your service shuts down.'

def unpublish(self):

    if self.group:
        try:
            self.group.Reset()
            logger.debug(u'%s:    Unpublished', self)
        except dbus.exceptions.DBusException as e:
            logger.debug(u'%s:    Unpublish    failed:    %s', self, e)
        finally:
            self.group = None
