Kevin Rudd warns of losing investments in war