Catching exceptions of sync XHRs