Add 'off' to events API to allow events to be unregistered.