add an onUnload member function in class CScene to do something
when the window which it belong to destroyed