Completed prompting to save on close.

Added REDMINE-9.
Merge remote-tracking branch 'origin/master'