Fix non-detection of iptables error status

Problem was introduced in commit d3c134715275d07bc76131a6187903aca4ad3535
(Add an easy way to switch on bash debugging) where the status was saved
after showing the output, not before.