Debian 11 has issues with python / Qtvcp and or QTPlasmac. It segfaults everytome because of it.
The segfaults on closing have nothing to do with linuxcnc and its not restricted to Debian Bullseye. Its a Python 3.9 issue and is also a bug reported at Redhat.
My solution (which I've followed for 30 years or so) is to never turn a PC off!
I'm pretty sure it is a qt bug while using python 3. IF you follow that redhat bug report it ends up being on the desk of the qt guys that does not have a very active group. I think we may be SOL on this.....