fix bug: reindexing finished doesn't exit processwq