Move kill_nic definition before its first use

This fixes a crash if we hit the first call.