     alert message.message
 
   shutDown: ->
+    return unless @initialized
     @connector.disconnect()
     @log "LiveReload disconnected."
     @listeners.shutdown?()

  hasPlugin: (identifier) -> !!@pluginIdentifiers[identifier]

  addPlugin: (pluginClass) ->
    return if @hasPlugin(pluginClass.identifier)
    @pluginIdentifiers[pluginClass.identifier] = yes


          when 'reload' then @performReload(message)
          when 'alert'  then @performAlert(message)

    @initialized = yes

  on: (eventName, handler) ->
    @listeners[eventName] = handler

