Added cleanup after tapdaemon exit

Now it frees the allocated TAP interface when tapdaemon quits.