Not knowing how this works and investing any serious money in the stock market is part of the problem.
The answer is that whoever carries their book (Prime brokerage) will have to cover any outstanding shares in the event they are unable to make a margin call or become insolvent.
XI Wiki


