As he laid in the hospital, the World War I ended, Austria-Hungary fell apart, and the Habsburgs lost their throne. In the Eastern Galicia was proclaimed the West Ukrainian National Republic, while Ukrainians of Bucovina tried to unite their land with the new Ukrainian republic, but unsuccessfully. The Bucovina was occupied by the Romanian forces against whom fought Austria-Hungary and Wilhelm to avoid arrest fled to Lviv. As Lviv was occupied now by Polish forces, Wilhelm again was forced to leave it moving to the Carpathian region where he was hiding in local monasteries for almost half a year. Meanwhile while Germany was withdrawing its troops from Ukraine, the regime of Skoropadsky in Ukraine was overthrown by republican forces of "Directoria" led by Volodymyr Vynnychenko and Symon Petlura and already no one else was offering Wilhelm to become a sovereign of Ukraine.