Added failure callback to AsyncTask.