Writing Crash Recovery File