Nearly 20 percent of patients with implantable cardioverter-defibrillators (ICDs) receive painful shocks near the end of life, leaving physicians to question how to care for patients in these trying times. When to initiate end-of-life discussions, as well as the legal and ethical ramifications of withdrawing a device in a terminally ill patient, are challenging considerations for physicians and administrators.