When to call client.destroy()?