Failed to open file for writing.