Isn't it better to do it with a with (so it gets closed even if there is an exception)?