private void backgroundWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            using (UTorrentWebClient webClient = new UTorrentWebClient(Properties.Settings.Default.ServerAddress,
                Properties.Settings.Default.UserName,
                Properties.Settings.Default.Password))
            {
                webClient.TorrentAdded += new TorrentEventHandler(webClient_TorrentAdded);
                if (backgroundWorker.CancellationPending)
                {
                    e.Cancel = true;
                    return;
                }

                if (this.IsMagnetLink)
                {
                    webClient.AddTorrentFromUrl(this.TorrentURI);
                }
                else
                {
                    webClient.AddTorrent(this.TorrentURI);
                }

                if (backgroundWorker.CancellationPending)
                {
                    lock (this.storedTorrentLock)
                    {
                        if (this.storedTorrent != null)
                        {
                            webClient.TorrentRemove(this.storedTorrent, true);
                        }
                    }

                    e.Cancel = true;
                    return;
                }
            }
        }