Created Window::Close() function