removed use of runOnUiThread for errors