lv-tool: Use a class to manage LV's lifecycle