A method is provided, including implanting a chamber containing cells in a subject, and subsequently administering, to the subject, a drug capable of killing the cells. For example, the drug may be administered after the cells cease to function for their intended purpose, or if the cells escape from the implanted chamber. Alternatively, the drug may be administered to kill the cells while the cells are in the implanted chamber. Other embodiments are also described.