any such disposition, and of any funds or other property jointly owned and undisposed of, and the assumption or payment of any indebtedness arising from the joint venture which remains unpaid, upon any such disposition or upon a termination of the agreement.