terminate issue debugging