> You just don't sell all of the company
The other option (more often used) is that you can raise more money at a higher valuation. You dilute yourself by the same amount as the initially planned raise, but you get more money and don't end up selling more/all of the company.