Handle xhr error the proper way