Add show save dialog for modified buffers.

 * Only show dialog when gdl element is closed not with application quit.
Show save dialog also when closing application.

 * Does silently save all buffers when close with window manager.