Fixed minor nuisance in `set-state` debugging macro
Added clear-queue function
Now tracks failed downloads
Fixed nil errors