Lua Runtime fix

* Simulator fix: After main loop, NSApplication needs to be terminated immediately.
* GLView::end needs to release self.