destroy the pool
pubsub refactor