examples: wait for clean exit

a few of our example apps dont wait for Stop() to finish working cc @jehiah