Make proxy connection more reliable