cleanup examples

* explicitly close the event loop at exit
* don't convert explicitly coroutines to tasks