finish function flushDevprogress