Protect connection retries from application exceptions