A passenger plane was forced to make an emergency landing on Sunday in Moscow, Russia, after a dog escaped from its crate and opened part of the luggage hatch, triggering an emergency alarm.

The dog had been placed in the cargo hold for pets in St. Petersburg, where the flight originated, but the crate was not properly locked, according to The Daily Mail.

The dog eventually got out of its carrier and clawed at the luggage hatch until it was able to tear “the inner lining of the luggage compartment and somehow provoked the opening of its front half-door” while the flight was at an altitude of 13,000 feet, RT reported.

The opened hatch set off an emergency alarm and forced the Boeing 737 to perform an emergency landing.

The dog was not able to completely open the hatch, a source at Moscow’s Sheremetyevo Airport told the Daily Mail, which likely saved the dog’s life.

The airline landed safely at Moscow’s airport and no injuries were reported.

The breed of the dog is unknown, but it must weigh more than 17 pounds since that is the weight limit in the European Union for pets traveling in the cabin.