Added an InternalStream data type to differentiate open and closed streams.