Improve close method, allows driver to close the websocket property before kill the reading thread and close socket.
Improve close method, allows driver to close the websocket property before kill the reading thread and close socket.

rubenvp8510/websocket-client