Abort the xhr request if a error appears.