fails:IO#getbyte returns the next byte from the stream
fails:IO#getbyte raises an IOError on closed stream
