Fix: server should not send on WebSocket once a client has closed the conncetion. Add a 'disconnect' event that signals when a browser window has been closed. #37