Automatically turn off wifi when device is plugged