Revert "Close print writers"

This reverts commit 390b242367cc17276d74d3a4af2f2bce2f4f7b57.

The reverted change closed the output PrintWriter too early
and led to truncated dumps.

Bug: 74423421
Change-Id: I62902f2aa20be460b6dec42e811b21bf953fcfe3
Test: manual
(cherry picked from commit 1af397c9f7b7d90d6235b72dcfe65a1f5441a09f)
1 file changed