Fix #381 - provide way to trigger clean shutdown from command line.
Merge pull request #459 from humphd/issue381

Fix #381 - provide way to trigger clean shutdown from command line.