Render error when shutting down computer, terminating blender process, etc

It doesn’t save the .avi file, in fact the file gets damaged and con not be restored in any possible way. This situation happened to me, that i had been rendering a video for 23 hours and then accidentally shut the computer down. After turning it back on, the file could not be viewed in any way.