"The only way around that would be to not participate in any trade with capitalists. "
actually the capitalists tend to embargo every socialist country, to hurt its economy.
If socialism doesn't work why did the US try to assassinate Fidel Castro 700 times?