New: use CliResult to tell the engine whether to continue or not