Prevent UI hang when auto terminating debug session

Signed-off-by: Anton Kolesov <anton.kolesov@synopsys.com>