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

...c states
Not necessary if you're using `once` vs. `on`.