private void FileSystemWatcherOnRemoved(Object sender, BasicFileSystemWatcherRemovedEventArgs e) { String key = e.RemovedPath; if (_plugins.ContainsKey(key)) { Invoke(_plugins[key], plugin => plugin.Disable()); _plugins.Remove(key); } }