Finalize all statements