Delete queues upon pool termination, and fix bug in queue creation when
starting a pool.