The last time this happened to me, I tried exporting to a .wav. I could export the mix or an individual track, but SONAR would still not allow me to save the project anywhere.
I had to quit SONAR, and the autosave file of course was "truncated" at that point.
So I agree with everyone who says they need to do a better job with exception handling in the code, and robustness during saves.
SONAR should have several schemes for trying to recover from a save error, up to and including asking the user to plug in a USB drive to save to if the main drive is having issues.
It should save whatever is savable in some format that the program can read in and recover as much information as possible.
John