make agent return 0 on non-zero exit code after restart routing