Avoid race condition when stopping acceptor:
we must shutdown the taskmaster *after* the listener stops handing it off
new connections.