toRemoveVector.add(handler);
runningThreads--;
decrSegCount(filename); // decrease main window segment counter
// segment done, so check if whole download file is finished now
dlFile.removeSegment(handler.dlFileSeg().getIndex());
if(!dlFile.hasMoreSegments())
{
try
{
handleFinishedDlFile(dlFile);