Unsubscribe websocket when closing.