What happens to air/sea units occupying when a city razes?

In both answers, the units are not "awoken" and you could lose your units with maybe only a later inkling that something is amiss.

Air Units are destroyed.

enter image description here

enter image description here

It appears that with sea units, you are given one turn to move them out. Regardless of how many movement the unit has; you will only be able to move one move. If you end the turn with it on land, the sea unit will be destroyed. If it was an aircraft carrier, the carrier will have survived but the aircraft will have been destroyed as per the aircraft rule enter image description here

Here showing 12 movement points and the move radius only shows 1 move. enter image description here Here showing the units is out of moves. enter image description here