Islam is a very practical religion…accidents do happen and simply washing in the machine or by hand is perfectly alright…it’s just a piece of material that you set aside for praying on it, it has no sacred values attached to it. u don’t EVEN need a jaa_namaaz for that matter. u can do ur prayers on any dry ground out in the field. sometimes, we tend to make life harder for no good reason