What is the best place to save minifilter metadata before instance tear down?

I want to save minifilter inscatce metadata file before instance tear down. I have used InstanceTeardownStartCallback to save metadata and it worked for ntfs/refs. So I could save it before minifilter unloading/ system restart and else cases, but for CSV volume I get STATUS_FILE_INVALID here… so I am wonderingis it appropriate place(InstanceTeardownStartCallback ) to save metadata?