here it is. I had a look into it, and since PTPRspnd.StartUpPTPFrameworkClient is the last entry I tried to reboot the camera also USB-unplugged. Does not matter, same LOG contents.
A script with a single reboot() almost always shuts down the camera completely. I even can't start it then manually, I have to take off the battery.
Thanks a lot!