use client.shutdown()