properly terminate a process that never completes