Do not modify hash when fopen fails