Fix Skyrim crash caused by log file.

Sometimes in games it fails when trying to open the log file for writing.
I now check for that.