Closes the window. Once closed, a window cannot be refreshed or redrawn. Calling Close triggers the CancelClose event.