The money received from the sale of the company goes to the shareholders usually in equal amounts unless the shareholding has different types of shares.
The payment of the sales proceeds of the business may be affected by any debt or borrowings in the business which needs repaying first. Additionally, corporation tax liability due up to the date of completion is normally deducted from the consideration received.