rate_limit: break loop when pool is closed.