The UN mission in Somalia was widely viewed as a failure after the US withdrawal following casualties in the Battle of Mogadishu.