Add basic EventListener.

Once the EventSystem is setup, we can actually register this EventListener
and use it to shut down the application properly.