Connection extends events.Emitter and emit 'error' if a token is -1