His arrival in office brings to a close President Mohammad Khatami 's largely unsuccessful eight-year attempt to liberalize the government .