Ask confirmation to close unsaved documents