netifd: Make possible state transitions more clear when handling teardown event