Frame: OnClose now handles asynchronous behaviour of DoStop()
Core: Always return CORE_STOPPING when in such a state.

The global g_bHwInit is set to false during the stopping process before it is completed.