Raise exception if client was not successfully shut down