Confirmed for 1.14.4 pre-release 3
I haven't checked if this happens in 1.13 snapshots, but I couldn't reproduce it in the official 1.13 release following the steps above
I attempted several times to reproduce this in 1.13, didn't get any stream closed errors, it seems to be fixed
Can confirm for 1.14.4 pre-release 4 and 5