Close consumer connection when reading metadata

- re #9