Merge pull request #2 from blink1073/master

Fix handling of exitcode, name of "payload" key, add stub for shutdown.