[Fix] Cursor not closed in getFile.

@wizcorp-olivier よろしく。
I would like to talk about the lines above a bit...