Making proxy retry on refused connection