Hitler committed suicide on 30 April 1945, as World War II in Europe drew to a close. In his Final Political Testament, Hitler intended to split again the two offices he had merged: he appointed Karl Dönitz as new President, and propaganda minister Joseph Goebbels was to succeed him as Chancellor. Goebbels committed suicide shortly after Hitler and within days Dönitz ordered Germany's military (not political) surrender on the 7 May, which ended the war in Europe. He had by then appointed Ludwig von Krosigk as head of government and the two attempted to gather together a government. However this government was not recognised by the Allied powers and was dissolved when its members were captured and arrested by British forces on 23 May at Flensburg.