Added clean exit for example app. Bugfix for native resend functionality.