Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

Some of the countries living in fear of Kim Jong Un’s arsenal appeared to heave a collective sigh of relief Thursday even though President Donald Trump abruptly left the nuclear summit with North Korea without an agreement.

The Hanoi meeting ended after Kim demanded that all economic sanctions against North Korea be lifted in return for concessions on Pyongyang's nuclear program. "We couldn't do that," Trump later told reporters.

Trump showing strength by walking away from the negotiating table was preferable to him meeting Kim's demands, according to Tomohiko Taniguchi, one of Japanese President Shinzo Abe's senior policy advisers.

While Tokyo has long wanted a deal, ensuring it's the right deal is crucial, Taniguchi said.

"This 'friendly walk-away' was much better than giving a wrong signal to Kim Jong Un," he added. "Mr. Trump succeeded in setting in place the kind of dynamics between the two — one begging and the other refusing."

Japan is within easy striking distance of North Korean weapons and doesn't want to be left behind as negotiations proceed. It is also seen as a U.S. bulwark in the region and houses tens of thousands of U.S. troops and their high-tech equipment.

North Korea's Nodong ballistic missile, also known as Rodong, has a maximum range of about 800 miles and could reach Japan in about 10 minutes. Kim tested ballistic missiles in 2017 that flew over Japanese airspace.

Japan also remains tormented by kidnappings of its citizens by North Korea decades ago.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

“I, for one, appreciate that [Trump] took the time and trouble in flying all the way from Washington, D.C., to Hanoi even if it has borne little fruit,” Taniguchi told NBC News.

Abe later released a statement saying he backed Trump's decision to leave the summit empty-handed.

"I fully support President Trump's decision not to make the easy choice," Abe said following a telephone call with the president.

"I am determined that I must meet Chairman Kim next," he added, reiterating his desire to have a summit with the North Korean leader.

Abe has said Japan would not normalize diplomatic ties with Pyongyang or provide economic assistance until North Korea gave a full accounting of all abductees and return any of those taken who are still alive.

Kim and Trump held a one-on-one session in Hanoi, Vietnam, on Thursday morning that was followed by a meeting with a larger group of officials from both sides. But everything fell apart around the lunch hour.

South Korean President Moon Jae-in spoke to Trump for 25 minutes after the summit was called off.

"We do regret that President Trump and Chairman Kim Jong Un did not reach a complete agreement at today's summit,” said Kim Eui-keum, a spokesman for Moon. “But it is clear that (the summit) made more meaningful progress than any other time in the past."

He added: "President Moon noted President Trump's efforts made over an extended time to hold deep discussions in order to achieve the common goal of denuclearization and the establishment of the permanent peace on the Korean Peninsula. He also said that President Moon is looking forward to a good result in follow-up negotiations since the leaders confirmed each other's positions and discussed specific items in person."

South Korea and Japan expressed support for President Donald Trump's decision to leave the nuclear summit without a deal. Google Maps

The two Koreas were divided by a war in the 1950s. North Korea has frequently made apocalyptic threats and the neighbors have exchanged deadly shell fire. Propaganda music has even been blasted over the border by hulking loudspeakers.

Things began to change after the election in 2017 of Moon, a liberal human-rights lawyer, as South Korea's president who has met with Kim in an effort to lessen tension.

Trump called Kim “quite a guy and quite a character” and characterized his relationship with the dictator as “very strong” before departing Vietnam for Washington.

Despite the satisfaction expressed in Seoul and Tokyo, some critics charged that the U.S. team arrived at the Hanoi meeting unprepared for the complicated and intense negotiations, which resulted in the talks breaking down.

“This is a total failure, there is no other way to put it,” said Victor Cha who led the Asia division of former President George W. Bush's National Security Council. “It shouldn't have happened, the spade work should have been done in advance.”

Wendy Sherman, who helped to negotiate the Iran nuclear deal and was a close aide to then-Secretary of State Madeleine Albright when she visited Pyongyang in October 2000, said last year's meeting between the two leaders in Singapore — which produced a short statement that was light on details — was unorthodox but not necessarily a failure.

But the stakes were higher this time around, according to Sherman.

“The second time you actually have to accomplish something," she told MSNBC early Thursday. “It clearly wasn’t negotiated to the point that everyone was ready to sign. This was like a shotgun wedding out of the bromance.”