Added a __gc step for the window.