uapp:switched to exceptions for init, hid custapp completely.
uapp:added an OnQuit event