Apu loses his job at the Kwik-E-Mart after he sells Homer tainted meat. Homer feels bad and lets Apu live at the Simpson's home while he is unemployed. In an attempt to get his job back, Apu and Homer travel to India to talk with the head of the Kwik-E-Mart corporation. Back in Springfield, James Woods fills in Apu's position.
Homer buys some spoiled ham from Apu in the Kwik-E-Mart, eats it, and gets extremely sick. After getting better, Homer angrily goes to Kwik-E-Mart to complain about the spoiled meat, for which Apu gives Homer spoiled shrimp. Once again Homer eats the shrimp and becomes sick again. This time however, Kent Brockman (who fronts the investigative news program Bite Back with Kent Brockman) gives Homer a giant novelty hat containing a spy camera to expose Apu for selling spoiled food. Caught in the act, Apu is immediately fired from Kwik-E-Mart. He protests that he did not violate company policy. The company executives agree but explain that it's also company policy to make a scapegoat in these situations. Apu's replacement is actor James Woods, who is researching a role for his next movie.
After being fired, Apu does chores for Homer because he thinks that he is in debt to Homer for selling him spoiled food and that helping him will pay off his debt of karma. As time goes by, the family begins to love Apu and his traditions. However, Apu begins to miss his job at Kwik-E-Mart, so Homer decides to help him by traveling with him to the Kwik-E-Mart head office in India to ask for his job back. The world's first convenience store happens to be inconveniently located on top of the Himalayas. Once they arrive, they meet up with the head of Kwik-E-Mart, a man in a white building drinking a Squishee in front of a sign that reads "The Master Knows All (except combination to safe)." Unfortunately, due to Homer's incompetence, the head of Kwik-E-Mart does not help Apu with his problem, and Apu and Homer are forced to return home disappointed.
Later on, Apu manages to save James Woods from being shot by a robber. The grateful Woods sees to it that Apu gets his job back at the Kwik-E-Mart, while he goes off to battle aliens on a distant planet. The episode ends with the Simpson family hugging Apu as he recovers in the hospital from a gunshot wound he received during the robbery.