Add functions for unregistration of events and transactions