terminate command kind of works