Exit application with event.

While this is done, I would really like to add an event loop to
these classes, I would like to do a few more tutorials before I
decide exactly how I'm going to do it.