We don't need to delete the dataCollector when closing the file. Just allocate it once in openH5File when it's NULL or in moduleLoad and delete it in moduleUnload.