Fix crash unplugging when usb/charger; Disable log in sleep time