Added a bit of control over event listeners
Merge pull request #8 from Darkhogg/graceful-shutdown

Event listeners are removed when no longer necessary.

Great!