For the `exec` command I use `kill-emacs` with the correct exit code (see https://github.com/rejeep/carton/blob/bin-carton-in-emacs-lisp/carton.el#L238-L239). But I guess it makes sense for the other commands. I'm not sure how `exec` works. Do I simply place it before the command?