optionally reconnect workers after X messages