Fix socket not being closed in server.

On client (website) we can't reopen a websocket so fake it out by
issuing close event, the server will close it. The client will reconnect
and at that point we really need a way to authenticate requests. Its not
in this code.