Fix for PrematureEOF

transfer closed with outstanding read data remaining