[opkg] close open files when finished with them.