Captured delete event, although it is too harsh and terminates the python thread, needs to be refined to close the GTK mainloop so that  can return