Fix bug with onclose WebSocket hangler

Reproduce: If Leap device is turned of LeapJS library rise exception:

```
Uncaught TypeError: Object #<WebSocket> has no method 'connect' leap.js:1684
```

Because Connection.prototype.handleClose function run in scope of WebSocket.

So there is little fix for it.