Alloq user to set an onError callback
Simpler setting of fastdom onError
Test setting of onError handler
Catch errors on defer as well as batch flush