How to know when the power of the USB port is cut off?