The X button has been lying to you about closing your apps.
I ran one command and found startup apps Windows “forgot” to mention.