Construction -A YOZ-
The construction "verb-A YOZ-", i.e. the present gerund followed by the auxiliary verb yoz- (root meaning: 'to be at fault'),
expresses that an event or action (ponctual or durative) is about to occur, or has almost occured.
An event or action about to occur:
Kun bota yozdi.
The sun is just setting.
Oy chiqa yozdi.
The moon is about to come out.
An event or action having almost occurred:
U yiqila yozdi.
He nearly fell.
He almost died.