The NDH army withdrew towards Zagreb with German and Cossak troops by early 1945 , and continued fighting for a week after the German surrender on May 9th , 1945 . By early 1945 , the NDH army withdrew towards Zagreb with German and Cossak troops , and continued fighting for a week after the German surrender on May 9 , 1945 .