Pfft, continuity is hard. Door halfway shut, cut SLAM. And why are they just ignoring Parker's changing voice?
As for the writing…did they really not have enough material to fill the last few minutes? So they resorted to stretching out gags that weren't even that funny in the first place? Sigh.