def _on_stop(self):
    try:
        self.on_stop()
    except:
        Logs.error('Error in on_stop function:', traceback.format_exc())
def _on_stop(self):
    try:
        self.on_stop()
    except:
        Logs.error('Error in on_stop function:', traceback.format_exc())