Avoid loop between pool.destroy and client.end