Partial implemented safe quitting. Not working yet.
Implemented safe quitting for editors.

Not documented yet.
Added the documentation for safe quitting.
Merge branch 'safe_quitting'