hookio/hook.io — pull request #140 by fent (2011-12-14 05:29:29+00:00)
Title: Emit event when hook.kill is called

Like discussed in issue #131, this is useful so hook developers can easily add unmonitor/cleanup code to their hooks. Named the event `hook::dead`, let me know what you think.

Since the `kill` function calls `stop`, I also wrapped part of the code from that into the `stop` callback. And added a missing call to the callback from `kill`.