       @debug.log(message)
       false
     else
+      @request.canceled = true
+
       @messageIo.sendMessage(TYPE.ATTENTION)
       @transitionTo(@STATE.SENT_ATTENTION)
       true

        data: (data) ->
          @sendDataToTokenStreamParser(data)
        message: ->
          if @request.canceled
            @transitionTo(@STATE.LOGGED_IN)

            sqlRequest = @request
            @request = undefined
            sqlRequest.callback(RequestError("Canceled.", 'ECANCEL'))
          
          # else: skip all messages, now we are only interested about cancel acknowledgement (2.2.1.6)

    FINAL:
      name: 'Final'

        data: (data) ->
          @sendDataToTokenStreamParser(data)
        message: ->
          @clearRequestTimer()
          @transitionTo(@STATE.LOGGED_IN)

          sqlRequest = @request
