Use the exit code returned by emacs