ensure close file before rename bookmark file.
Merge pull request #849 from runner-mei/gs2

ensure close file before rename bookmark file.