>Government takes risk just like commercial companies take risk.
Incorrect. Govt payloads are self-insured. This is essentially saying "We have such deep pockets that it doesn't matter if we lose the payload, it won't hurt us financially." I don't know many private organizations with that risk threshold. This is partly why the early govt contract is so important. It allows SpaceX to get enough experience while being funded by a customer that isn't risk-adverse. This buys them time to improve to a point where commercial payloads can be insured without being cost-prohibitive. Again to my original point, this means the govt shoulders a disproportionate amount of risk.
I guess when the CEO says "Yep, they saved us. Without that contract, we'd be done because we were out of money" and that isn't clear enough, you've transitioned to fanboy-dom. Cognitive dissonance is a hell of a hurdle.
You can't seem to understand that NASA offer is not the same as closing the company without it. While NASA offer was nice, I never heard Musk saying certainly that without that offer - after Falcon-1 flew successfully - SpaceX would close.
Government takes risk just like commercial companies take risk. Nothing unusial here. Taking such risk means that some ventures will fail, but overall it will get better than without taking risk.