Changes based on comments by @rdiomar, plus added LeaderUnavailableError for clarity