Proper handling of waiting for ongoing io ops before closing an a dataset. Also added config para.
4 files changed