fixed crash when stopping the proc using ct