Removing duplicate line closing the same stream twice

Removed a line closing the data stream which had already been closed.