As for bankruptcy, yes the loss is factored in. And it happens everyday. Bankruptcy is one of the reasons America has a great innovative economy.
No, they really wouldn’t. The majority of a given college’s budget comes from non-govt sources, and most grants come from industry.