fix file close in chatplus.load()