Fixes server crash.

Prevents server crashes when attempting to send over a WebSocket
connection that was closed by the remote party.
Merge pull request #22 from vsa/0.7.x

Fixed server crash.