After months of widespread frustration with corruption , the economy and a lack of justice and security , doubts about President Hamid Karzai of Afghanistan , and by extension the American-led effort to rebuild that nation , have led to a crisis of confidence .