Took me a while to find the answer, but I know now! Okay if Jirachi uses Doom Desire and get knocked out, Doom Desire is no longer in place. And as was said in the comments, the effect also goes away if the defending Pokemon retreats.