Fix filterdns termination

- Terminate filterdns when not being used anymore
- Remove killbypid function call with invalid pid file
- Reconfigure filterdns when deleting "allowed hostnames" entries