Fix empty waitgroup
Export logger to reduce boilerplate in clients