Made upload wakeful

So that it must complete before the os terminates the upload service.