#MLHR-835 #comment Changes to move the stream.close calls into finally block.