Russian President Vladimir Putin said the Ukraine war may be nearing its end and stressed the importance of a lasting peace agreement.