fix cli shutdown