The unusual captivity of the richest man in the Middle East has come to a close.