Update threadpool. Wait until no more events are being logged asynchronously.