close epub file before renaming