Closes the window.
Optional animation or display properties to use when closing the window. Optional.