add proxy_failures to kill the last proxy