No action pending in any court shall abate by the death of either, or both, the parties thereto, except an action for libel, slander, malicious prosecution, assault or assault and battery, for a nuisance or against a justice of the peace [magistrate] for misconduct in office, which shall abate by the death of the defendant.
NMS § 37-2-4