If he or she resigns, is removed from office, or dies, a county treasurer, or his or her executor or administrator, shall immediately make his or her settlement and deliver to his or her successor in office all things pertaining to the office, together with all the moneys belonging to the county.