[ImageManager] close an open file.