Ensure that the disconnect call does not throw, even if no WebSocket object has been made.
Merge pull request #10 from andyperlitch/improved_websocket

Ensure that the disconnect call does not throw