Use wake lock and Wifi lock to make sure download succeeds