update to fileWriter to prevent failed write attempt to try over and over, causing watchdog to fire