The CloseEvent() constructor creates a new CloseEvent.