Just one thing, that sentence with a car.

That's better to use сломаться in that case. Feel free to use испортиться with food though