better client shutdown.