now handle xhr exceptions to avoid crash, fixes #13
v3.4.0