In fact, this ending has been ambush everywhere as early as the second season, not because the actor had to kill him because he did not renew his contract. It can be seen that the plot of this drama is quite rigorous.
In the second season, a previous gossip was revealed, that is, William introduced Walter to know her wife, so they got married and had Peter, but in a parallel universe, William died in a car accident before he met Walter. The probability of Walter and his parallel wife encountering in the universe is almost 0, so it is implied here that there will be no such person as Peter in the parallel universe. But the plot is that Peter in the main storyline universe was kidnapped from a parallel universe, and Peter really died in an accident. So Peter, who was alive and kicking from the beginning, is a non-existent person kidnapped from a parallel universe.
If someone is playing an online game and suddenly gets a magical outfit that is impossible to appear in the game settings, everyone will think that it is either a plug-in or a bug.
In the last episode of the third season, Peter finally entered the Doomsday Device. As a result, he traveled to the future decades later, and found that he had successfully destroyed the parallel universe in the past and ensured that his own universe was not destroyed. But at this time, a terrorist organization, under the instigation of Walter (Walter B) who escaped from the parallel world, attacked the weak points in the space and accelerated the disintegration of this universe in order to achieve the purpose of revenge.
A wormhole that traveled through tens of millions of years ago appeared in New York's Central Park before, and was closed by Fringe Division with amber, so Walter B's last step was to expose the wormhole and completely destroy the universe. Before that, Olivia was killed on the way. Who told her that she was still discussing with Peter about having a child the day before. According to logic, when she said this, she was usually not far from death.
In the end, Walter connected this series of events, knowing that no matter what, the outcome would be a lose-lose, and the only way out was to write a cheat to cheat. The "first human" discovered before is actually himself. The various parts of the Doomsday Device that were confusing before were also solved. The mystery was also solved. He himself sent it through the time-traveling wormhole in Central Park.
Therefore, the entire plot is a typical time-space travel drama logic. The ending and the cause are connected in a closed loop in time and space. In such a time-space structure, there is no choice at all, and any physical phenomenon (including human behavior) must satisfy the The historical process follows this most basic law of physics in a closed-loop path, otherwise the consequences will be severe (because of violating the laws of the universe, this person will not exist; since he exists, he must be a version that does not violate the laws of the universe).
So Walter had to dismantle the Doomsday Device once again and send it to the past through the wormhole, but this time (it may have happened many times, in fact, it should be the last time) he realized that although he could not go against his own design The behavior that must be done, but the content of this behavior can be changed, so the role of Peter was added (to be precise, he came up with a technology that can transmit a person's consciousness to the past through a wormhole), Use this character to replace yourself to try to change the setting of the entire time and space. So, Peter is a plug-in.
So has Walter succeeded? In fact, he succeeded. The universe at the time of the plot is not the universe when he wrote the plug-in Peter, but a new universe. Peter in it must exist, and he must get together with Olivia. Before the end of the three seasons, it will not be inexplicably killed by the gun-wielding actor who rushed out of the corner. The time-travel scene at the end of the third season actually didn't happen at all, but the Readme.txt packaged with Peter.exe told the user why the dead programmer Walter wrote this plug-in in the first place. Because in this new universe, Peter disappeared at the end of season three, and in the old universe, Peter didn't exist at all.
View more about Fringe reviews