On dissolution of the board of managers, title to property held by the board or in the name of the hospital shall be transferred to the county and municipality as agreed to by the county and municipality.