Closes the connection to the windowing system for the given display.
This cleans up associated resources.