This is a bug within xarray. We need to either wait until xarray fixes it or, if this affects people, add in a manual close. For now I will wait.