Court heard Steven John Klaric, 49, was found wandering through halls and into rooms in two seniors' care homes in the middle of the night.