add cleanup to main and bugfix in eth0 smp_affinity