Broadcasts state when websocket connection is closed.