[Fixes bug #772172] Ensure that the active tool has committed its work before attempting to close the document
[Fixes bug #772172] Ensure that the active tool has committed its work before attempting to close the document

Mailaender/Pinta,Fenex/Pinta,Mailaender/Pinta,PintaProject/Pinta,Fenex/Pinta,jakeclawson/Pinta,jakeclawson/Pinta,PintaProject/Pinta,PintaProject/Pinta