error out cleanly if no master could be reached in failover mode