Is it possible to intercept the close gadget of a window? I would like to have a close gadget, but I don't want it to just close the window and show the background because this is my Base Window and I want to shut the whole program when the user closes it. I don't need to stop it closing the window, I just need to know that the event occurred.