Canadian military leaving long-term care homes