Prevent UI hang when auto terminating debug session

Signed-off-by: Anton Kolesov <anton.kolesov@synopsys.com>
STAR: 9000695020- Putty connection error