When using RebufferedBytesIO, construct will hang if the underlying stream closes down and start returning 0/None bytes. Issue here: https://github.com/construct/construct/blob/master/construct/lib/bitstream.py#L95