Add a checkpoint save before exiting
Merge pull request #219 from bugbane1/master

Add a checkpoint save before exiting