The X button has been lying to you about closing your apps.
Should You Shut Down Your Laptop or Just Close the Lid?