The previous case, keeping a reference created a race condition as 2 threads would use the same logContext.