[Crash-utility] [PATCH] Fix incorrect task state during exit