The Nazis never lost the war, they had plans in place for that... When Donitz was Fuhrer (for about 10 days) after Hitler "shot himself" he called back his kriegsmarine with these words (paraphrasing) "You must sail into the nearest German port and surrender, WE CANNOT CONTINUE THE WAR FROM HERE."