findCmdTerm()
Move the check for unterminated inside `findCmdTerm()` itself and return it rather than having each caller do it itself.