improve error handling when XHR fails