Cleanup shutdown procedure
Force exit after clean shutdown
Merge pull request #224 from quixoten/clean_shutdown

Clean shutdown