Fixed #285 - Changed error event listener in setupsyncclient to throw ap...

...propriate object