Added cleanup to sampler.pool.