Avoid retrying the tunnel more times than allowed.