Fix detecting failures from the backend.