Add function for removing event handler.

Fixes #3