As a legal person, how can a company quit if it can't find shareholders?

If it is a limited company, it is not allowed to withdraw its shares, but can only transfer its shares to others, either through an agreement between shareholders or to a third party, but under the same conditions, shareholders have priority; Generally speaking, a joint stock limited company cannot withdraw its shares, but it can transfer its shares among its internal shareholders or to others with the consent of the shareholders' meeting.