Lawry confirms retirement after 40 years