fix reallyAppend() to return early if there is an error while logging