Test client shutdown called multiple times