scide: never close a session with unsaved documents

[fixes #899]