The term originated in the openning scrawl of the science fiction film masterpiece, "Blade Runner", desribing what Blade Runners do to "Replicants" (robots so advanced they are indestinguishable from humans):
"Special police squads - BLADE RUNNER UNITS - had orders to shoot to kill, upon detection, any trespassing Replicant.
This was not called execution. It was called retirement."
Loosely, the is often used in scifi circles to refer to any instance when a (usually) humanoid robot that is designed to look human is terminated by a human, such as on the 2004 Battlestar Galactica with the new humanoid Cylons (the new Cylon models are very similar to Replicants, and Edward James Olmos appears in both Blade Runner and BSG).
"The report read "Routine retirement of a replicant." That didn't make me feel any better about shooting a woman in the back."
"Cally just retired Boomer!" (Cally has just shot and "killed" Boomer, who was revealed as a Cylon sleeper unit).
"Commander Adama retired Leoben by beating him with a flashlight"
"Starbuck's retirement of Simon was very graphic"
"Cally should get a medal for retiring that Cylon whore Boomer"
fred:Tomorrow marks the day of my retirement
Boss: Nice how did your investment in the 401k plan turn out
fred:What is that?
Boss:See you on Monday fred