
Refactor code to handle errors better. Persister shuts down faster and more reliably. On shutdown, messages in buffer will be dropped. On restart, messages will be read from Kafka and processed again. Fixes problem with persister not shutting down and restarting when a vertica node goes down. Change-Id: I60b4ba6e06e69e68878f8400e360250e3608e5a5