only switch namenode once when StandbyException occurred
to avoid dead loop