The Matrix Revolutions
Niobe on her ship attempts to return to Zion by going through an area that only a very skilled pilot can go through. However, Niobe makes a mistake and the machines come after them. During one part of the dock battle, the commander Milfune tries to repel the machines but is overwhelmed. He dies. He tells the Kid to take his APU and to open the dock doors. The Kid does so and the ship comes through, blows its EMP, and saves the dock for now.