Fixes server crash.

Prevents server crashes when attempting to send over a WebSocket
connection that was closed by the remote party.