heroku/logplex — pull request #81 by technomancy (2014-01-22 00:51:43+00:00)
Title: Close active drains

This fixes a problem where the drain socket was closed prematurely before the `disconnecting` state--it shouldn't be closed until we are actually transitioning to the `disconnected` state.