Version2 working

Is this what we really want here, System.out.println? Also, should we close the stream on error as well (finally block)? I'd recommend Guava's Closer, but I think we're trying to avoid the dependency here.