Fix filterdns termination

- Terminate filterdns when not being used anymore
- Remove killbypid function call with invalid pid file