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

...c states
@humphd Is there a reason we'd want to stop listening for errors on the websocket server? It seems like a good place to keep a failing assertion.