Put the stream close block in the wrong place, fixed