Function WindowEvent_Close()
Returns true if the window close event is called.