Making errorFreq.txt persist through crashes