Since we are keeping around a reference to the IndexVolumeWriter and BlockVolumeWriter instances, we cannot wrap their usages in using statements. This fixes issue #4046.