send/recv error handling

easywsclient does not react on socket errors. I added some code to detect them. The websocket will be closed if an error occurs.