open session once during exporting all notes.