A Unit dies only when it is being discarded during phase. If you discard a card during or phases, its not considered as died.