Add finalization for table