Automatic shutdown of infected network connections