Eritrea 's denial of fuel to the mission caused the UN to withdraw the mission and terminate its mandate 31 July 2008 .