Do not crash if you don't have permissions to write to a file