Is there a way in Deluge to determine a torrent is failing? E.g. no seeders anymore, data corrupted, etc.? In Transmission for example we have the item['isStalled'] status. If so please add 

elif item['xxxx']:
  status = 'failed'

Now the base downloader will call the remove failed function below, and try a next torrent/nzb :)