Clean up window.