Fixed issue #115 - Added more detailed error handling to client-side syn...

...c states
Why this change?  Emitting this event twice below seems odd.