Also put the net.ipv4.ip_forward option back to what it was before on exit, rather than always setting back to 0.