Pool finalizing logic is changed to synchronized and blocking.