Close producer connection after saving snapshot

- re #9