properly deregister all events