Native app now exits without lua errors etc.