Properly wait for any existing client connection to close.