mattbaird/elastigo — pull request #137 by alicebob (2014-11-13 14:22:20+00:00)
Title: Simplify and fix bulk Stop()

Stop go routines by close()ing the channels they are reading from.
This fixes the shutdown timeout when the ES inserts hang (the timeout didn't work, requiring a kill-9 to shutdown clients of a hanging ES).