(#127) - Prevent config file corruption on crash