If an ajax error occurs and we have an onFailure handler defined, call it

...t