ALWAYS close hdf5 files immediately.