fixes #7802, when api version 1.11 is `json.Marshal`ing the container st...

fixes #7802, when api version 1.11 is `json.Marshal`ing the container struct

Signed-off-by: Jessica Frazelle <jfrazelle@users.noreply.github.com>
same for these too, so this whole block of Close() are not needed here.