don't leave event listeners behind

This fixes #21