added cleanup goto to make sure that we don't just leave netdev open