OS loop is managed by the scheduler.

The main thread is blocked in a loop, waiting the window to be closed.
The terminate flag has been replaced by a call to OS::Closing().