United Airlines finally left bankruptcy Wednesday, a leaner and more cost-efficient carrier after a painful restructuring that began in 2002 and lasted a record 1,150 days.

The nation’s No. 2 airline announced it had filed its exit documents in U.S. Bankruptcy Court Wednesday afternoon, officially ending the longest and costliest bankruptcy of any airline