The X button has been lying to you about closing your apps.
Microsoft is testing a Windows 11 feature that would let users “feel haptic feedback effects on compatible input devices while performing certain actions, such as aligning objects in PowerPoint, ...
Windows 11 now has an "End task" button to close apps completely. This button simplifies closing frozen apps or those with background processes. To enable the feature, go to Settings > System > "For ...