Attempt to work around failed file writes.