Called by the event loop when new config is available.

def new_config_event(self):
        """Called by the event loop when new config is available.

        """
        try:
            self.on_set_config()
        except Exception as ex:
            self.logger.exception(ex)
            raise StopIteration()