qtclient: fixed some more crashes around developer mode and debug terminal