Raeder held the post until falling out with Hitler after the German failure in the Battle of the Barents Sea. He was replaced by Karl Dönitz on 30 January 1943 who held the command until he was appointed President of Germany upon Hitler's suicide in April 1945. Hans-Georg von Friedeburg was then Commander-in-Chief of the OKM for the short period of time until Germany surrendered in May 1945.