Stores the entered commit text onto the document before saving. +Test
Now shuts down app after saving. +Test