@pozdnyakov There are chances for some events (like the app.onLaunched here) delievered to an application which is not yet launched. Hope the following pseudo code could provide a basic overview, @seanlong please correct me if anything wrong.

```
if event is 'app.onLaunched' or anything in the main_events  // These are the 'special events'
    if the application is running
        dispatch the event
    else
        launch the application and queue the event  // dispatch the event after loading process is finished.
    endif
else
    Just dispatch the event
endif
```