make the log reader more robust.