Terminate command and handler