This closes #10.
This closes #10.

Better handle timeouts

Timeouts result in the scanner getting an EOF.  A scanner can't be used
after getting an EOF.

apache/incubator-mynewt-newt,apache/incubator-mynewt-newt