off = (eventName, eventHandler) => {
  // Remove all handlers for all events
  if (!eventName) {
    globalState.eventEmitter.reset()
    return
  }

  if (eventHandler) {
    // Remove a specific handler
    globalState.eventEmitter.removeListener(eventName, eventHandler)
  } else {
    // Remove all handlers for a specific event
    globalState.eventEmitter.removeAllListeners(eventName)
  }
}
@param {string} [eventName]
@param {EventHandler} [eventHandler]