Handle IO errors while reading/writing config file - crash report fix
Speculative fix for crash report NullReferenceException in OnInject