core: add missing return code in comment of function hook_command_exec