Add spec for pool graceful shutdown.