Call client.shutdown() directly.