Close Button

hi, the button on the window component doesnt seem to do anything, how do i get the window to unload when it clicked…anyone know please?