Make filterdns restartable and properly cleanup its tables upon exit or during a reconfiguration