This very simple circuit will turn off anything when you shutdown your computer. It works by using the power of the usb port to turn on a relay. When your computer is off the usb port has no power and the relay opens the circuits to the devices that are plugged in.