Added a default error handler the ajax call.