<P> Joanna calls Michael and tries to convince him to kill Sofia for the sake of his family, but Michael refuses . Joanna activates the fail - safe plan and derails the train in order to kill everyone aboard . Michael manages to save all of the passengers by unhooking the final car from the rest of the train right before a curve . </P> <P> Assuming Michael is holding the train hostage, Murphy is sent to talk to him, only to be revealed as the cop who killed Enrique . Michael and Murphy engage in a fight, during which Michael removes Murphy's police tracker, which identifies him as a "friendly" to the snipers outside . The snipers, believing Murphy to be Michael, shoot and kill Murphy . </P> <P> Outside of the train, Sofia is met by the FBI and proceeds to tell them what she knows . Michael is hailed as a hero and exonerated by the other passengers while his family is rescued by the FBI . His old captain admits that Murphy and a few others had been under investigation for some time and offers Michael his job back . Sometime later, Joanna is on a train back from Chicago . Michael approaches her and confronts Joanna about her actions before he shows his police detective badge, implying he is about to arrest her . </P> <Ul> <Li> Liam Neeson as Michael MacCauley </Li> <Li> Vera Farmiga as Joanna </Li> <Li> Patrick Wilson as Det . Lt. Alex Murphy </Li> <Li> Jonathan Banks as Walt </Li> <Li> Sam Neill as Captain David Hawthorne </Li> <Li> Elizabeth McGovern as Karen MacCauley </Li> <Li> Killian Scott as FBI Agent Dylan </Li> <Li> Shazad Latif as Vince </Li> <Li> Andy Nyman as Tony </Li> <Li> Clara Lago as Eva </Li> <Li> Roland Møller as Jackson </Li> <Li> Florence Pugh as Gwen </Li> <Li> Dean - Charles Chapman as Danny MacCauley </Li> <Li> Ella - Rae Smith as Sofia </Li> <Li> Nila Aalia as Sherri </Li> <Li> Kobna Holdbrook - Smith as Oliver </Li> <Li> Colin McFarlane as Conductor Sam </Li> <Li> Adam Nagaitis as Conductor Jimmy </Li> <Li> Kingsley Ben - Adir as Special Agent Garcia </Li> <Li> Damson Idris as Special Agent Denys </Li> <Li> Ben Caplan as Frank </Li> <Li> Letitia Wright as Jules Skateboarder </Li> <Li> Pat Kiernan as himself </Li> </Ul>

Explain the ending of the movie the commuter
find me the text answering this question