Fix mis-feeing in the ResourcePool destructor.