Implemented unregisterable custom event handler.