Anytime a program is in the middle of writing to a file, such as an INI file and it's terminated abruptly from a crash, you have a good chance of the file getting corrupted. I'm not sure there is much you can do about that. Note that this is only when the file is being written to at the time of the crash.