At a Honduras airport, a man was taken into custody after breaking into the cockpit during boarding of an American Airlines, according to a Tuesday announcement from the airline.

The flight was meant to head for Miami from Ramon Villeda Morales International Airport in San Pedro Sula, but the man damaged the plane after charging into the cockpit. He then attempted to jump through the plane’s cockpit window, before being apprehended by crew members on the plane.

The man’s attempt to jump out of the plane was caught on video and shared online.

The airline commended their crew for handling the strange situation, and a replacement plane was sent for the passengers on the damaged plane that got them to their destination after a delay.

Read more about: