Fix stream not being closed on all exception paths.

Change-Id: Ie5474147ade91463b2aa271a6a37c8ee7ba041be
1 file changed