Why this code delay? may not be better if is a setting? 

closedelay = (slot.delay or .1) * DOWNLOADER_CLOSEDELAY