He exiled himself to Czechoslovakia and the Soviet Union and was living in Moscow when the bloodless military uprising known as the Revolution of Carnations toppled Marcelo Caetano , Mr. Salazar 's successor .