Await pool termination before printing results