       options = autoReconnect : options
 
     autoReconnect = options.autoReconnect
-    @reason = options.reason or undefined
+    @reason = options.reason
 
     @remote.disconnect(autoReconnect)
     @disconnected()

    @emit "disconnected", @reason

  stopPingingKites: ->
    @eachKite (channel) ->
      channel.setStopPinging()

  eachKite: (callback) ->

      @startPingingKites()

  startPingingKites: ->
    @eachKite (channel)->
      channel.setStartPinging()

  disconnected: () ->
