The crew declared an emergency 25 minutes into the flight.