All that happens; but (1) corporate failure costs largely fall on the stakeholders of the corporation (yes bailouts etc. happen; they don't change the basic principle), and as a result (2) corporate money-losing projects in general fail faster than those managed by a government, with resources getting eventually reallocated to more productive purposes.