Add setTaskDidCompleteBlock to get the callbaks of the background process