Finalize the work