Improve error handling in announceLog.go