accept fail char means we are done

Signed-off-by: Andy Green <andy.green@linaro.org>