[minor] Inherit from EventEmitter so we can emit error events