Implemented destructor for window
Implemented destructor for window