Adding a window close.