It doesn't matter, once the person is executed only to find out that he was innocent, it's legalized murder.
Shit may happen, but it doesn't make it any less wrong. That's why we had to stop hanging people in Canada in the 70s because it turned out that we were killing too many innocent prisoners.