Peter's suicide pays homage to the original ending of "Dawn of the Dead," in which Peter was supposed to shoot himself before the zombies could get him.
After forgetting a pan of food is frying, Peter runs into the kitchen to douse the smoking pan. His curses were modeled directly from Bill Murray's moment at the hospital as he is trying to escape the doctors.