LearnBoost/engine.io — pull request #35 by Contra (2012-07-31 00:11:45+00:00)
Title: fix calling .close() during a socket upgrade

Calling server.close() immediately after connecting a client throws this error

```
TypeError: Cannot read property 'upgraded' of undefined
at Server.onWebSocket (/home/contra/Projects/protosock/node_modules/engine.io/lib/server.js:233:25)
at Server.EventEmitter.emit (events.js:88:17)
at WebSocket.Server.handleUpgrade (/home/contra/Projects/protosock/node_modules/engine.io/node_modules/websocket.io/lib/server.js:84:10)
at WebSocket.EventEmitter.emit (events.js:85:17)
at WebSocket.onOpen (/home/contra/Projects/protosock/node_modules/engine.io/node_modules/websocket.io/lib/protocols/hybi.js:87:14)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
```

There is probably a better place to fix this