ensure close file before rename bookmark file.