Handle the case of empty partitions in the finalizer