Shopify/sarama — pull request #170 by eapache (2014-11-04 14:57:36+00:00)
Title: Fix shutdown even harder

Worked through the happens-before graph a little more formally and found some
(admittedly unlikely) cases where shutdown would fail/panic/hang/whatever. This
version *should* be correct.

@wvanbergen