added close method to MetaCreator to finish all work