Add exiting and support for the AWT Event queue