handle error for LeaderServer