You will be given a definition of a task first, then some input of the task.
In this task, you are given a text of many news articles seperated by special token "|||||". Your task is to summarize them.

(CNN) -- The United States on Monday handed over control of a U.S.-run prison near Bagram Air Base to Afghan authorities. 
  
 The handover of control of the detention center in Parwan fulfills an agreement between Defense Secretary Chuck Hagel and Afghan President Hamid Karzai. 
  
 The detention facility has been a sticking point between U.S. and Afghan authorities, and tensions over the facility re-emerged this month with sharp words from Karzai that the commander of NATO's International Security Assistance Force called "inflammatory." 
  
 The handover deal was reached Saturday, but came a full year after the initial plan was announced by U.S and Afghan authorities. 
  
 The original plan called for the prison and detainees to be handed over with six months, but in September, the United States "paused" the transfer of detainees, which include suspected Taliban militants and insurgents. 
  
 The U.S. military has not publicly discussed the specifics of the dispute. But a military official, speaking on the condition of anonymity, told CNN last year that the United States was holding on to several detainees over concerns about whether Afghan authorities will properly handle their cases and under what circumstances they might be released. 
  
 Karzai has been adamant that all prisoners be under Afghan control. Last year, he called the U.S. failure to hand over all detainees at the facility a "serious breach" in the deal outlining the transfer of power from U.S. forces to Afghanistan. 
  
 Tensions between the NATO-led coalition forces -- especially those from the United States -- and Karzai have escalated since a bomb blast in Kabul earlier this month that killed nine people. 
  
 Karzai said afterward that there are "ongoing daily talks between Taliban, American and foreigners in Europe and in the Gulf states." 
  
 The comment effectively claimed the United States was trying to foment continued violence inside Afghanistan, and it was quickly denounced by NATO and U.S. officials. 
  
 Some experts say Karzai's comments have been fueled by frustration over the detention facility not being handed over, which he views as an attack on his country's sovereignty. 
  
 In an e-mail this month to top commanders, U.S. Marine Gen. Joseph Dunford, commander of ISAF, warned of new risks of attacks due to rising tensions between NATO forces and the Afghan president, an ISAF official told CNN. 
  
 Karzai's recent statements "could be a catalyst for some to lash out against our forces -- he may also issue orders that put our forces at risk," Dunford said. 
  
 Barbara Starr reported from Washington and Chelsea J. Carter reported from Atlanta. CNN's Jennifer Z. Deaton and Jake Tapper contributed to this report. ||||| US cedes full control of Bagram jail to Afghan forces 
  
 BAGRAM, Afghanistan — Afghanistan on Monday took full control of Bagram prison from the United States, healing a running sore in their relationship as US Secretary of State John Kerry arrived unannounced in Kabul. 
  
 President Hamid Karzai had made the fate of the detention centre part of his push to regain sovereignty over key matters from the Americans ahead of the scheduled withdrawal of foreign combat troops next year. 
  
 The United States was long concerned that a total handover to Afghanistan's weak and corruption-prone security forces would allow suspected Taliban and Al-Qaeda militants housed at Bagram to return to the battlefield. 
  
 But a final agreement was sealed on Saturday, and a handover ceremony was held at the jail hours before Kerry landed in Kabul on an unannounced visit. 
  
 The drawn-out war in Afghanistan is increasingly unpopular in the US, and relations between Kabul and Washington were badly shaken earlier this month when Karzai accused the US of working in concert with Taliban militants. 
  
 Reacting to Karzai's shock allegations, a US official travelling with Kerry said the secretary of state was keen to move "beyond this incident" and to "continue to emphasise on how we work together". 
  
 "He will make clear that the US will have an enduring commitment in Afghanistan that will last beyond transition and that there will always be bumps on the road," the official told reporters. 
  
 Bagram was due to be turned over on March 9, but the transfer was postponed at the last minute after Karzai indicated that "innocent" prisoners would be freed. 
  
 In September the United States gave Afghan authorities control over more than 3,000 detainees at Bagram, once dubbed the Guantanamo Bay of Afghanistan because some inmates are detained without trial or knowledge of any charges. 
  
 But the Americans continued to guard 50 foreigners not covered by the agreement, as well as hundreds of Afghans arrested since a transfer deal was first signed in March 2012. 
  
 Their extended control sparked angry comments from Karzai and a warning from Afghanistan's top Islamic body that the US military was coming to be seen as an "occupation" force as it battles a long-running Taliban insurgency. 
  
 "US control of Bagram was a rallying cry for the Taliban and an important issue for much of the Afghan public," said Kate Clark of the Afghanistan Analysts Network. 
  
 "This looks like a victory for Karzai as he has got what he wanted. Bagram was a huge stumbling block before they get onto a long list of other issues to sort out -- and time is of the essence." 
  
 General Joseph Dunford, commander of the international coalition, and Defence Minister Bismillah Mohammadi signed a deal guaranteeing the treatment of detainees and "to protect the people of Afghanistan and coalition forces". 
  
 Mohammadi hailed the transfer as "a crucial and positive step towards the security and self-sufficiency of Afghanistan", before 26 detainees -- who were not present at the ceremony -- were released. 
  
 Guards prevented reporters from speaking to the freed men. 
  
 Karzai has taken an increasingly antagonistic stance towards Washington and has been chafing at the activities of US special forces and at civilian casualties. 
  
 Last week he won a limited agreement for Afghan forces to take charge of one district of Wardak province, a key front in the insurgency pitting militants against the US-led International Security Assistance Force. 
  
 Afghan troops and police are gradually taking on responsibility for battling the Taliban as most of the 100,000 foreign troops prepare to leave by the end of 2014. 
  
 Karzai is due to step down at elections next year, 13 years after he came to power with US backing when the hardline Taliban regime was ousted in the aftermath of the September 11 attacks of 2001. 
  
 The military and political calendars are lending added urgency to the search for a negotiated settlement to resolve Afghanistan's decades of conflict. 
  
 Kerry, on his first trip to Afghanistan since taking up office, arrived in Afghanistan after visiting the Middle East. 
  
 Copyright © 2013 AFP. All rights reserved. More » ||||| (CNN) -- U.S. Secretary of State John Kerry made a previously unannounced visit to Afghanistan on Monday to repair strained relations with President Hamid Karzai as the American-led international force continues to prepare to end its combat mission next year. 
  
 Kerry's stop came on the same day that U.S. forces turned over control of a prison that has caused tension between the two nations, with Americans retaining a say on the handling of certain Taliban inmates. 
  
 The talks on Monday followed controversial comments by Karzai in recent weeks that seemed to accuse U.S. forces of working with the Taliban to kill Afghan civilians, a charge denied by U.S. officials. 
  
 Karzai's reported remarks caused outrage in Washington with some in Congress questioning why the United States should continue the war effort. 
  
 At a joint news conference after meeting Kerry, Karzai said he had been misinterpreted when quoted as alleging collusion between the Americans and the Taliban. 
  
 U.S. hands over Afghan prison 
  
 But he made clear that violence against villagers must stop for there to be any chance for successful peace talks. 
  
 Karzai explained that he was talking about Taliban violence, especially how a bombing in Kabul that killed nine people didn't help achieve the Taliban goal of getting foreign troops to withdraw. He said media reports misinterpreted his comments to mean he was accusing the Taliban and United States of collusion. 
  
 "If they want the international community to leave Afghanistan, then the best way is for them to stop killing people," Karzai said of the Taliban. "That does not mean a collusion between the Untied States and Taliban. That's a conclusion the press came up with." 
  
 Karzai also said some U.S. special forces in Wardak province had tortured and killed Afghan civilians, but that had stopped when those forces were removed under a recent agreement after his government complained. 
  
 He made sure to emphasize his appreciation for U.S. support, twice declaring the thanks of the Afghan people for American assistance that he said would "enable Afghanistan to manage itself through 2014 and beyond." 
  
 For his part, Kerry emphasized the commitment of President Barack Obama to Afghanistan and its people would continue past the halt in combat operations by the NATO forces before the end of next year. 
  
 The United States and Afghanistan are negotiating an agreement that would allow some U.S. forces to remain in Afghanistan beyond the end of the NATO mission, but unresolved issues include how many and there specific role. 
  
 Kerry said Obama "was committed to not allow America's investment and the sacrifice here to be reversed," adding that "the United States will still be playing a role and will be here through the course of this future period." 
  
 Meanwhile, the former commander of the international military force in Afghanistan, U.S. Gen. John Allen, said Monday that the war there would continue after foreign troops conclude their combat mission by the end of 2014. 
  
 "On the first of January, there's still going to be fighting in 2015. There's still going to be fighting in Afghanistan," Allen told a conference at the Brookings Institution. 
  
 He added that Afghanistan would "join a long and distinguished list of countries that will be struggling in a post-conflict environment where it will have an insurgency in some parts of that country for an extended period of time." 
  
 Kerry landed in Kabul on Monday afternoon and met with Karzai at the presidential palace before the news conference that lasted almost an hour. The two were to talk further over dinner and perhaps again on Tuesday morning, Kerry said. 
  
 Earlier Monday, the United States handed over control of a U.S.-run prison near Bagram Air Base to Afghan authorities. 
  
 Karzai called the development a major boost for the transition, while Kerry emphasized several times that the agreement respected Afghanistan's sovereignty to operate the prison that holds Taliban figures. 
  
 The agreement includes provisions to give the United States a say on how some of the most notorious Taliban prisoners are handled. Karzai outlined a process in which U.S. officials provide intelligence to Afghan officials on specific prisoners, and further consultations follow if the Afghans want to set them free. 
  
 In a sign of the sensitivity of the issue, Karzai twice described the final step of the process as consultations, then changed his wording to "an exchange of views." He said that "I must use my words carefully." 
  
 "We will consider it," he said of a U.S. request to keep particular prisoners in custody, adding that Afghan law would call for such handling of anyone posing a legitimate threat. 
  
 The matter touches on a politically charged situation for Karzai, who is criticized by the Taliban and other foes for the continuing presence of the NATO forces in the country. 
  
 The handover deal was reached Saturday, but came a full year after the initial plan was announced by U.S and Afghan authorities. 
  
 An initial plan called for the prison and detainees to be handed over within six months, but in September, the United States "paused" the transfer of detainees, which include suspected Taliban militants and insurgents. 
  
 Other tensions between the countries involve continuing violence, such as a bomb blast in Kabul this month that killed nine people. Karzai said afterward that there are "ongoing daily talks between the Taliban, Americans and foreigners in Europe and in the Gulf states." 
  
 The comment effectively claimed the United States was trying to foment continued violence inside Afghanistan, and it was quickly denounced by NATO and U.S. officials. 
  
 Some experts say Karzai's comments were fueled by frustration over the detention facility not being handed over sooner, which he viewed as an attack on his country's sovereignty. 
  
 During the news conference, Kerry repeatedly referred to Afghanistan's sovereignty in the transition process as the NATO military force turns over leadership of combat operations to Afghanistan's military, which it has trained in recent years. 
  
 Under an agreement between the Afghan government and NATO, the bulk of U.S. and NATO combat forces are to be out of Afghanistan by the end of 2014. What remains to be decided is how many troops may remain to help train Afghan forces. 
  
 The trip was Kerry's first visit to Afghanistan as secretary of state, but the former senator's sixth during Obama's presidency. 
  
 He was in Iraq over the weekend to press that nation's leaders to take steps prohibiting Iranian planes from delivering arms to Syria's besieged government. Last week, Kerry joined Obama on a trip to Israel, the Palestinian territories and Jordan. 
  
 CNN's Nick Paton Walsh, Barbara Starr, Chelsea J. Carter and Ed Payne contributed to this report. |||||
Output:
John Kerry dropped in unexpectedly on Afghanistan today, as the US finally handed over control of a prison near Bagram Air Force Base, CNN reports. The transition follows long-running controversy over the site; the deal was announced a year ago, and was supposed to put Bagram in Afghan hands six months ago. But the US suspended detainee transfers, with an insider citing US worries over how Afghanistan would deal with certain cases at a prison that held Taliban figures. President Hamid Karzai, concerned over matters of sovereignty, had called the delay a "serious breach." But the handover marks a step forward in US-Afghan relations, AFP notes."US control of Bagram was a rallying cry for the Taliban and an important issue for much of the Afghan public," notes an analyst. The transfer "highlights an increasingly confident, capable, and sovereign Afghanistan," says Gen. Joseph Dunford, head of international forces in Afghanistan. Kerry, meanwhile, is in Kabul to meet with Karzai in his first visit as secretary of state, CNN reports.