<P> Thomas, Newt, and Gally escort Teresa inside WCKD headquarters and toward the location of the Immunes . Gally looks after the Immune children and stays to find a serum that slows the Flare, while Thomas, Newt, and Teresa go to find Minho . They are discovered and chased by Janson . Teresa lets them escape to find Minho before rushing to do a blood test on Thomas' blood, which she obtained when removing trackers from the Gladers . </P> <P> Having delivered the Immune children and the serum to Brenda, Gally returns to WCKD headquarters to find Thomas . Brenda is forced to flee with the Immune children to avoid capture . Thomas and Newt reunite with Minho in the medical wing . Teresa discovers that Thomas' blood can cure the Flare . She shares her discovery with WCKD's leader, Ava Paige, both agreeing that they must find Thomas . Brenda and the Immune children escape WCKD with Frypan's help . Meanwhile, Lawrence rallies his rebels outside the city before blowing a hole in the city wall, sacrificing himself to allow his allies and the infected people to storm the city . Gally finds Thomas, Minho, and Newt . Newt, sending Minho and Gally ahead to get the serum from Brenda, gives Thomas a pendant before passing out . Teresa transmits her voice throughout the city, telling Thomas that his blood can save Newt if he will only return to WCKD . Newt, nearly consumed by the Flare, regains consciousness and attacks Thomas, while begging Thomas to kill him . When Thomas will not, Newt--left with no other option--stabs himself . </P> <P> Thomas makes his way back to WCKD and confronts Ava . However, she is killed by Janson, who is infected by the Flare . Janson knocks Thomas out and drags him to a lab where Teresa is ready to extract his blood . However, he reveals that he is only truly interested in curing himself and others that he feels are worthy, which results in Teresa turning on him . After a fight, Janson is killed, allowing Thomas and Teresa to escape to the rooftop, where Teresa gives Thomas a vial with the cure . Their allies suddenly appear in an aircraft: Thomas makes it aboard, but Teresa dies when the headquarters collapses in on itself . </P> <P> The group reunites with the rest of the Immunes and The Right Arm, escaping to a safe haven, where the remaining population can live in safety . There, Thomas discovers that the pendant Newt gave him had a note in it . Still traumatized by his friends' deaths, he reads the note, in which Newt tells him to look after everyone . </P>

Who dies in maze runner death cure movie