Clean up probing and handle premature transport disconnect
Handle error on send
Forgot to register close listener
Fixed bad indent
Added a debug line to websocket.js for reporting cases where the socket is closed before onclose is fired
Not emitting an upgrade error when upgrading was in fact successful
Renamed removeAllListeners to cleanup
Merge pull request #294 from rase-/fixerrors

Error handling fixes