It's pretty bad to be landing in a foreign country without a mobile device!!!
Same thing just happened to me, was in airplane mode and enabled Wifi to connect to plane Wifi.
There isn't even a way to close the phone, It's rebooting endlessly.
Unfortunately I'm not carrying a USB keyboard + OTG...