Improve error handling in scrapeLog.go