OnClose can now abort closing the window if it wants