Invoke OnStop on the UI thread