Let's say you have cusip x106 shares. Let's say the court gives judgment and x106 shares become invalidated. No matter whether you are dismissed or not, all the x106 shares including your shares are invalid. Being dismissed by challenging jurisdiction makes you free from fraud only.