Added commit MessageBox on documentBeforeClose