Error: transfer closed with outstanding read data remaining