Field Marshal Keitel's defence counsel at the Nuremburg War Crimes Tribunal, Dr. Nelte, described Goebbels as; "a very shrewd man, the ideological dynamo of the Third Reich." In Nelte's opinion, apart from the anti- Jewish pogrom of November 1938 (Kristallnacht) "...there was nothing Goebbels could have been accused of in this trial."
However, the Allies took a different view and Goebbel's was named in the list of major war criminals to be prosecuted at the war's end, this list was published in September 1944 as a warning to the Nazi leadership of what was to come.
I believe Goebbel's knew his pre-destined fate was to be death at the hand of the victorious Allies. His last words to his staff have been reported as; "..well, what were you working with me for, gentlemen? we hung together and we'll be hanged together"