finalize service