Ensure terminating pools

It is important to terminate pools or a lot of orphans may be left behind.