pool: fix finalization