Fixing bug where net_connect was left disabled after test