added write to error log for failure to write to spreadsheet