Hello,
and thank you for the informations.
I’m really astonished how much errors i can find in this file. One can think the whole desktop enviroment is buggy 
I try now a script executed with the shutdown.
#!/bin/bash
echo > ~/.xsession-errors
Does that make sense?
Ciao!
Dieter