Finalize heartbeating.