Add destructor for window
Add nullptr checking to destroy() for managers