Remove closing of the stream as it does nothing.