iptables-restore Fix exception if program closes early due to invalid rule