Right now the tool loops over the wordlist. If the request count is 100 and the wordlist has 10 entries, then each entry will be sent 100 times.
Instead, make the action write the finish message into the comand queue once the end of the wordlist has been reached. If the request count is smaller than the wordlist size, the current behavior is okay.