I had the same problem when trying to plug an Android device into my MBP (Running 10.10.3, currently). All I wanted to do was run Android File Transfer to get some files off the device but, even though I tried Cmd+W Several Times and even Cmd+Shft+Opt+Esc, the "NetworkSetup" window *kept* popping up. Then I got an idea for how to stop it without modifying any settings, preferences, etc. and it works - Here's how to stop it:
- Open up a Terminal window (Macintosh HD [or otherwise] > Applications > Utilities > Terminal, Or just Cmd+Space, type terminal, hit Enter)
- When the Login process is complete, enter topand hit enter.
topis just a utility used to monitor system processes, their CPU consumption, etc. but in this situation, all you're looking for is the PID (Process ID Number) column because you're going to need to "kill" NetworkSetup.
- Once top is running, locate the command called NetworkSetup and it's respective PID.
In my case, I had another process running called "MotoHelper" which I had to kill first before I could kill Network Setup, but I digress.
- Now open up a new, separate window and enter the command: kill-9[process id] but replace "process id" with the PID number (should be 4 digits) that you got from your top window next to NetworkSetup.
- Boom. Dead.
Should work. If you have any questions, I'm happy to help if at all able 🙂