more graceful shutdown of worker thread in async
simplified worker thread in async logger
updated example