Use the exit code returned by emacs
Merge pull request #4 from tkf/exitcode

Use the exit code returned by emacs