#422 - fixed close after saving modified document
Merge pull request #423 from BradRem/422

#422 - fixed close after saving modified document