An implantable medical device configured to be compatible with the environment inside an MRI machine. The implantable medical device includes a housing constructed of an electrically conductive material and pulse generation circuitry within the housing for generating electrical voltage pulses. The implantable medical device further includes a first conductor that is configured to transmit the electrical voltage pulses from the pulse generation circuitry to a patient's cardiac tissue and a second conductor that is configured to provide an electrically conductive path from the patient's cardiac tissue back to the pulse generation circuitry. The implantable medical device further includes a selectively interruptible electrically conductive path connecting the pulse generation circuitry with the housing.