handle master server errors properly