Have you tried plugging the equipment into a different wall socket ? Maybe the "monitoring" power line (or that specific socket) can't handle the temporary load increase you have when plugging the equipment, so the voltage momentarily drops, making the usb charger drop the power to the arduino long enough to have it reset.
just my 2 cents.