Close stream using try/finally (see other comment)