Fix a bug around aborting AsyncTask.