Gracefully flush chunks when ingestor exits (#27)
Gracefully flush chunks when ingestor exits (#27)

* Gracefully flush chunks when ingestor exits

* Ensure ingestor shutsdown gracefully

* Remove ingestor from consul before shutting it down

tomwilkie/cortex,tomwilkie/cortex,tomwilkie/cortex