FIXED add raise method to xhr to catch errors in handlers #681