Update documentation modification status and display a little star icon at document tabs.
Query saving modified files before closing
Query saving modified documents when closing window.