@unihorn I think this should be done in the retry function. If the error is a net error, then do a switch leader.