destroy socket if sendBytes fails
Merge pull request #80 from dwrensha/destroy-socket

destroy WebSocket if sendBytes fails