LONDON (AP) — Auto shipments stopped, beer stopped flowing, cargo ships dropped port calls and oil companies cut their pipelines.

Russia’s invasion of Ukraine has thrown business plans into disarray and forced a growing number of the world’s best known brands — from Apple to Ford and BP — to pull out of a country that’s become a global outcast as companies seek to maintain their reputations and live up to corporate responsibility standards.

Investors were drawn to Russia in search of lucrative profits they thought were worth the geopolitical risks. That calculation has changed after Russian President Vladimir Putin launched war in Europe, triggering a wave of global sanctions and export restrictions that have thrown its economy into turmoil and disrupted the operations of multinational corporations there.

“You basically have Russia becoming a commercial pariah,” said economist Mary Lovely, a senior fellow at the Peterson Institute for International Economics in Washington. “Pretty much no company, no multinational, wants to be caught on the wrong side of U.S. and Western sanctions.”

They’re also expressing concern about the plight of Ukrainians, showing how they want to be seen coming out on the right side of history.

Complicating the push to flee is an order from Moscow temporarily restricting foreign investors from selling Russian assets. Prime Minister Mikhail Mishustin said Tuesday that it would help investors make “a considered decision” rather than succumb to the political pressure of sanctions. It’s not clear how that may affect corporate efforts to exit Russia.

Oil and gas companies, already feeling the heat from climate activists to invest in renewable energy, were among companies to announce the most rapid and dramatic exits.

Energy firm BP said Sunday that it would abandon its $14 billion stake in state-owned oil and gas company Rosneft. Shell said the next day it was leaving its joint venture with state-owned Gazprom and its involvement in the now-suspended Nord Stream 2 pipeline built to carry natural gas to Western Europe.

ExxonMobil said it will pull out of a key oil and gas project and halt any new investment in Russia. All their chief executives said they were shocked and saddened by the increasingly bloody conflict. Smaller energy firms have followed suit.

Companies in other industries signaled they’re staying out of the Russian market either out of concern for Ukraine or to comply with Western sanctions.

Swedish auto brand Volvo Cars said it’s not delivering cars to Russia for the time being in light of “potential risks associated with trading material with Russia, including the sanctions imposed by the EU and U.S.”

U.S. automaker Ford, which has been winding down its Russian operations and only has a minority stake in a commercial van joint venture, told its partners it was suspending operations.

Similarly, Harley-Davidson halted motorcycle shipments to Russia and said its thoughts “continue for the safety of the people of Ukraine.” Putin famously rode a three-wheeled Harley on a visit to Ukraine in 2010.

Others with more entrenched Russian operations might find it harder to navigate the crisis.

Renault, one of the biggest players in Russia’s auto market, said only that it’s temporarily suspending production at its Moscow plant through Saturday “due to some logistics issues,” without being more specific.

Czech brewer Budvar, which counts Russia as one of its five major markets, halted beer production for and stopped deliveries to the country, saying business is not the top priority and that it’s looking for ways to help, including finding accommodations for Ukrainian refugees.

Copenhagen-based Danish brewery group Carlsberg suspended production at two breweries in Ukraine, saying it’s “following the situation with great concern” but didn’t comment on its extensive Russian operations, including St. Petersburg-based Baltika Breweries, which exports beer worldwide.

The world’s biggest shipping company, A.P. Moller-Maersk, said it will stop making Russian port calls, saying it was “deeply concerned” by the escalating crisis.

Airplane makers Boeing and Airbus stopped supplying parts and service support for Russian carriers. Boeing said it suspended major operations in Moscow and temporarily closed its Kyiv office.

Hollywood studios are delaying the release of new films in Russia, which isn’t a leading movie market but typically ranks in the top dozen countries for box office revenue. Warner Bros., the Walt Disney Co., Sony Pictures cited the “humanitarian crisis.”

Tech companies also headed for the door.

Apple said Tuesday that it would stop selling its iPhone and other popular devices inside Russia.

Computer maker Dell Technologies said it has “suspended” sales in both Ukraine and Russia but a spokesperson didn’t say why.

Google and TikTok blocked Russian state media channels from their platforms after a plea from the European Union. Apple also blocked downloads of the RT News and Sputnik News apps from its mobile App Store outside Russia.

Executives are realizing it makes more sense to pull out of Russia, business experts said.

“It’s really tough to do business in Russia under the best of conditions. Now it’s become just crazy. So getting out is a smart business proposal,” said James O’Rourke, professor of management at the University of Notre Dame’s Mendoza College of Business, who specializes in reputation management and business communications.

Companies will have to chalk up any losses as the cost of doing business.

“This is like going into business with the Manson family,” O’Rourke said, referring to the followers of cult leader Charles Manson. “You honestly do not want your name associated with those people, and it’s probably not going to cost you that much to disinvest.”

It’s not just sanctions but public sentiment that companies have to respond to as the human costs of the war grow.

Company commitments to environmental, social and corporate governance, known as ESG, are being put to the test. ESG has become a buzzy acronym that’s increasingly seen as an important way for corporations to tout responsible business credentials.

“But there can also be an element of greenwashing,” where companies say things that make it seem like they hold certain values or are on the right side of ESG issues while their practices and behavior suggest otherwise, Columbia Business School associate professor Vanessa Burbano said.

“Stakeholders like employees and consumers will want to see if companies’ actions and behaviors are consistent with the communicated support that companies are expressing for Ukrainians,” she said.

Some companies were going beyond just making statements about halting deliveries or operations.

Lego, Ford, Volkswagen Group and its Czech-based Skoda brand said they would make millions of dollars in charitable donations to support Ukrainian refugees.

___

Associated Press writers Matt O’Brien in Providence, Rhode Island; Danica Kirka in London; Ken Sweet in New York; Michael Liedtke in San Ramon, California; and Jan M. Olsen in Copenhagen, Denmark, contributed to this report.

___

Follow AP’s coverage of the tensions between Russia and Ukraine at https://apnews.com/hub/russia-ukraine. Follow Kelvin Chan on Twitter at https://www.twitter.com/chanman.