add connection failure protection during retry