Add serial read error check.