Call handler onStop before draining closed queue
Call handler onStop before draining closed queue

call worker handler stop before closing worker input queue and draining the
queue. Only after queue has been closed, the wait-group Done method is run.

yapdns/yapdnsbeat,yapdns/yapdnsbeat