fix a crash when Activity is finishing while onPostExec