Add destroy from through2 and _r.pipestdio that waits for flush before exit