As the meeting progressed, a new plan emerged, and Kennedy began to be convinced. The new plan invited him to ignore the last message and return to Khrushchev`s old message. Kennedy initially hesitated and felt that Khrushchev would no longer accept the agreement because another had been offered, but Llewellyn Thompson argued that this was still possible.  Special Counsel and White House Counsel Ted Sorensen and Robert Kennedy left the meeting and returned 45 minutes later with a draft letter. The president made some changes, had them typed and sent them. At that time, the crisis was supposed to be deadlocked. The Soviets had shown no indication that they were resigning and had made public media and private intergovernmental statements in this regard. The United States had no reason to believe in anything else and was in the early stages of preparing for an invasion, as well as a nuclear attack on the Soviet Union, when it reacted militarily, which was assumed.  Kennedy had no intention of keeping these plans secret; Khrushchev was quickly alerted to this imminent danger. Anastas Mikojan was tasked with negotiating with Castro on the missile transfer agreement, which aimed to avoid the collapse of relations between Cuba and the Soviet Union.
During his stay in Havana, Mikojan experienced Castro`s mood swings and paranoia, convinced that Moscow had reached the agreement with the United States at the expense of Cuban defense. Mikojan decided on his own that Castro and his army should not take control of weapons of explosive power equivalent to 100 Hiroshima bombs. He defused the seemingly intractable situation which, on 22 November 1962, risked a further escalation of the crisis. In a tense four-hour meeting, Castro convinced that despite Moscow`s desire to help, he would violate an unprecedented Soviet law, which did not exist, to permanently put missiles in Cuba`s hands and offer them an independent nuclear deterrent. Castro was forced to give in and, to the relief of Khrushchev and the rest of the Soviet government, tactical nuclear weapons were repatriated by sea to the Soviet Union in December 1962.  A hotline has been set up between the United States and the USSR to prevent such a crisis from happening again. The situation was extremely tense and could have led to a war between the United States and the Soviet Union, but at the last minute, Khrushchev returned the Soviet ships, which were to deliver more missiles to Cuba, and agreed to dismantle and remove existing weapons. Kennedy and his advisers had unscrewed the Soviets, and the apparent capitulation of the Soviet Union to the impasse was decisive for Khrushchev`s impeachment in 1964.
After the crisis, the United States and the Soviet Union set up the Moscow-Washington hotline, a direct communication link between Moscow and Washington. The aim was to have a way for the leaders of the two Cold War countries to communicate directly to resolve such a crisis. When Kennedy ran for president in 1960, one of his main election themes was a so-called “missile hole” with the Soviets at the helm.