Bandera cultivated German military circles favorable to Ukrainian independence, and organized OUN expeditionary groups. When Nazi Germany invaded the Soviet Union, he prepared the 30 June 1941 Proclamation of Ukrainian statehood in Lviv, pledging loyalty to Adolf Hitler. For his refusal to rescind the decree, Bandera was arrested by the Gestapo, which put him under house arrest on 5 July 1941, and later between 1942 and 1943 sent him to the Sachsenhausen concentration camp. In 1944, with Germany rapidly losing ground in the war in the face of the advancing Allied armies, Bandera was released in the hope that he would be instrumental in deterring the advancing Soviet forces. He set up the headquarters of the re-established Ukrainian Supreme Liberation Council, which worked underground. He settled with his family in West Germany where he remained the leader of the OUN-B and worked with several anti-communist organizations such as the Anti-Bolshevik Bloc of Nations as well as with the British intelligence agencies. Fourteen years after the end of the war, Bandera was assassinated in 1959 by KGB agents in Munich.