raise Exception in on_error so process will be restarted