Reimplemented AddWindowCloseCB