I think it was slightly obscure. I also tried closing the connection on the stream in a different way, and it didn't work at all.