Check writer return value.